Function at 0x5566e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
test byte [0x77fc58], 1
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x55670a
mov eax, dword [0x77fc58]
fld dword [esi + 0x70]
or eax, 1
mov dword [0x77fc58], eax
jmp 0x556710
fld dword [0x77fc54]
fld dword [0x780754]
mov al, byte [esi + 0x75]
test al, al
fmul dword [0x70259c]
fadd st(1)
fstp dword [0x77fc54]
fstp st(0)
je 0x556df4
fld dword [0x77fc54]
fcomp dword [esi + 0x70]
fnstsw ax
test ah, 5
jp 0x55674f
mov byte [esi + 0x74], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 4
mov byte [esi + 0x74], 1
mov dword [0x77fc54], 0
mov edi, esi
mov dword [esp + 0x10], ebx
mov ebp, ebx
lea ebx, [ebx]
mov eax, dword [edi]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x556780
mov ecx, esi
call fcn.00556200
add edi, ebx
dec ebp
jne 0x556770
dec dword [esp + 0x10]
jne 0x556768
lea edi, [esi + 0x40]
mov ebp, 5
mov ecx, dword [edi]
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x5567a3
mov ecx, esi
call fcn.00556200
add edi, ebx
dec ebp
jne 0x556793
mov ecx, dword [0x781e94]
mov edx, dword [ecx]
call dword [edx + 0x3c]
test al, al
je 0x556d23
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, 2
mov dword [esp + 0x18], eax
mov eax, 0x1f40
push edi
mov ecx, 8
mov dword [esp + 0x50], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x60], ebx
xor ebx, ebx
mov eax, 0x100
push 0x10
mov dword [esp + 0x50], ecx
mov dword [esp + 0x68], ecx
mov ecx, dword [0x781e94]
push ebx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], 1
mov dword [esp + 0x4c], 0xfa0
mov dword [esp + 0x50], 0xbb8
mov dword [esp + 0x64], edi
mov dword [esp + 0x70], 0x10
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call fcn.005e6d80
mov ecx, dword [0x781e94]
push edi
push 0x11
push ebx
call fcn.005e6d80
lea eax, [esi + 0x40]
mov dword [esp + 0x10], eax
mov eax, 0xffffffc0
sub eax, esi
mov dword [esp + 0x1c], eax
jmp 0x556860
mov ecx, dword [esp + ebx*4 + 0x38]
mov edi, dword [esp + 0x18]
xor edx, edx
mov ebp, ecx
mov eax, edi
shl ebp, 2
div ebp
mov eax, edx
xor edx, edx
div ecx
xor edx, edx
mov dword [esp + 0x14], eax
mov eax, edi
div ecx
mov eax, edx
imul eax, eax, 0xff
xor edx, edx
div ecx
mov edi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
call fcn.005dfb20
test al, al
je 0x556d23
mov ecx, dword [0x781e94]
mov edx, dword [ecx]
call dword [edx + 0x40]
test al, al
je 0x556d54
mov eax, dword [0x781e94]
mov eax, dword [eax + 0x1dc]
mov ecx, dword [eax]
push 0
push 0x3f800000
push 0xff000000
push 1
lea edx, [esp + 0x38]
push edx
push 1
push eax
call dword [ecx + 0x90]
fild dword [esp + ebx*4 + 0x48]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
lea ebp, [ecx + edx]
fst dword [esp + 0x20]
mov eax, 0xff
fstp dword [esp + 0x24]
sub eax, edi
mov ecx, 0xffff
sub ecx, edi
shl ecx, 0x10
mov edx, eax
shl edx, 8
or ecx, edx
or ecx, eax
push 0
or ecx, 0xff000000
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
push 0
push 0
lea edx, [ecx + ebp]
mov ecx, dword [esi + edx*4]
push 0
call fcn.005e0400
test al, al
je 0x556d30
mov edx, dword [esp + 0x14]
mov eax, edi
or eax, 0xffffff00
shl eax, 8
or eax, edi
push 2
shl eax, 8
or eax, edi
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
inc edx
and edx, reloc.WS2_32.dll_closesocket
push 0
push 0
jns 0x55696d
dec edx
or edx, 0xfffffffc
inc edx
add edx, ebp
mov ecx, dword [esi + edx*4]
call fcn.005e0400
mov ecx, dword [0x781e94]
test al, al
mov eax, dword [ecx]
je 0x556d51
call dword [eax + 0x44]
test al, al
je 0x556d54
mov edi, dword [esp + 0x10]
mov ecx, dword [edi]
push 0
call fcn.005dfdf0
test al, al
je 0x556d54
mov ecx, dword [edi]
call fcn.005dfc20
inc ebx
add edi, 4
cmp ebx, 4
mov dword [esp + 0x10], edi
jl 0x556860
mov ecx, dword [esi + 0x50]
call fcn.005dfb20
test al, al
je 0x556d23
mov ecx, dword [0x781e94]
mov edx, dword [ecx]
call dword [edx + 0x40]
test al, al
je 0x556d75
mov eax, dword [0x781e94]
mov eax, dword [eax + 0x1dc]
mov ecx, dword [eax]
push 0
push 0x3f800000
push 0xff000000
push 1
lea edx, [esp + 0x38]
push edx
push 1
push eax
call dword [ecx + 0x90]
xor edi, edi
lea ebx, [esi + 0x40]
mov eax, 0xff
cdq
idiv dword [esp + edi*4 + 0x58]
push 2
mov ecx, eax
or ecx, 0xffffff00
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
push ecx
mov ecx, dword [ebx]
push 0
push 0
push 0
push 0
call fcn.005e0400
test al, al
je 0x556d6a
inc edi
add ebx, 4
cmp edi, 4
jl 0x556a10
mov ecx, dword [0x781e94]
mov eax, dword [ecx]
call dword [eax + 0x44]
test al, al
mov ecx, dword [esi + 0x50]
je 0x556d1e
push 0
call fcn.005dfdf0
test al, al
mov ecx, dword [esi + 0x50]
je 0x556d1e
call fcn.005dfc20
mov ecx, dword [esi + 0x4c]
call fcn.005dfb20
test al, al
je 0x556d23
mov edx, dword [esi + 0x6c]
mov ecx, dword [0x781e94]
mov edi, 0xff
sub edi, edx
mov edx, dword [ecx]
call dword [edx + 0x40]
test al, al
je 0x556d1b
mov eax, dword [0x781e94]
mov eax, dword [eax + 0x1dc]
mov ecx, dword [eax]
mov edx, edi
or edx, 0xffffff00
shl edx, 8
push 0
or edx, edi
push 0x3f800000
shl edx, 8
or edx, edi
push edx
push 1
lea edx, [esp + 0x38]
push edx
push 1
push eax
call dword [ecx + 0x90]
test eax, eax
jne 0x556d1b
mov ecx, dword [esi + 0x50]
push 2
push 0xffffffffffffffff
push eax
push eax
push eax
push eax
call fcn.005e0400
test al, al
mov ecx, dword [0x781e94]
je 0x556d8a
mov edx, dword [ecx]
call dword [edx + 0x44]
test al, al
mov ecx, dword [esi + 0x4c]
je 0x556d1e
push 0
call fcn.005dfdf0
test al, al
mov ecx, dword [esi + 0x4c]
je 0x556d1e
call fcn.005dfc20
mov ecx, dword [esi + 0x50]
call fcn.005dfb20
test al, al
je 0x556d23
mov ecx, dword [0x781e94]
mov eax, dword [ecx]
call dword [eax + 0x40]
test al, al
je 0x556d75
push 0
push 0x3f800000
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [0x781e94]
push 1
call fcn.004aecc0
mov ecx, dword [esi + 0x4c]
push 0xf
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
call fcn.005e0400
test al, al
mov ecx, dword [0x781e94]
je 0x556d70
mov eax, dword [ecx]
call dword [eax + 0x44]
test al, al
mov ecx, dword [esi + 0x50]
je 0x556d1e
push 0
call fcn.005dfdf0
test al, al
mov ecx, dword [esi + 0x50]
je 0x556d1e
call fcn.005dfc20
mov eax, dword [esi + 0x78]
xor edi, edi
test eax, eax
jle 0x556cd9
mov ecx, dword [esi + 0x4c]
call fcn.005dfb20
test al, al
je 0x556d23
mov ecx, dword [0x781e94]
mov edx, dword [ecx]
call dword [edx + 0x40]
test al, al
je 0x556d1b
mov ecx, dword [0x781e94]
push 0
push 0x3f800000
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x38]
push eax
push 1
call fcn.004aecc0
mov ecx, dword [esi + 0x50]
push 0xe
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
call fcn.005e0400
test al, al
mov ecx, dword [0x781e94]
je 0x556d8a
mov edx, dword [ecx]
call dword [edx + 0x44]
test al, al
mov ecx, dword [esi + 0x4c]
je 0x556d1e
push 0
call fcn.005dfdf0
test al, al
mov ecx, dword [esi + 0x4c]
je 0x556d1e
call fcn.005dfc20
mov ecx, dword [esi + 0x50]
call fcn.005dfb20
test al, al
je 0x556d23
mov ecx, dword [0x781e94]
mov eax, dword [ecx]
call dword [eax + 0x40]
test al, al
je 0x556d75
push 0
push 0x3f800000
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [0x781e94]
push 1
call fcn.004aecc0
mov ecx, dword [esi + 0x4c]
push 0xe
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
call fcn.005e0400
test al, al
mov ecx, dword [0x781e94]
mov edx, dword [ecx]
je 0x556d72
call dword [edx + 0x44]
test al, al
mov ecx, dword [esi + 0x50]
je 0x556d1e
push 0
call fcn.005dfdf0
test al, al
mov ecx, dword [esi + 0x50]
je 0x556d1e
call fcn.005dfc20
mov eax, dword [esi + 0x78]
inc edi
cmp edi, eax
jl 0x556bc3
mov ecx, dword [esi + 0x4c]
call fcn.005dfb20
test al, al
je 0x556d23
mov ecx, dword [0x781e94]
mov eax, dword [ecx]
call dword [eax + 0x40]
test al, al
je 0x556d1b
mov ecx, dword [esi + 0x50]
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
call fcn.005e0400
test al, al
mov ecx, dword [0x781e94]
jne 0x556da4
mov edx, dword [ecx]
call dword [edx + 0x44]
mov ecx, dword [esi + 0x4c]
call fcn.005dfc20
mov eax, 0x80004005
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x781e94]
mov edx, dword [ecx]
call dword [edx + 0x44]
mov ecx, dword [esi + ebx*4 + 0x40]
call fcn.005dfc20
mov eax, 0x80004005
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
call dword [eax + 0x44]
mov ecx, dword [esi + ebx*4 + 0x40]
call fcn.005dfc20
mov eax, 0x80004005
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x781e94]
mov edx, dword [ecx]
call dword [edx + 0x44]
mov ecx, dword [esi + 0x50]
call fcn.005dfc20
mov eax, 0x80004005
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, dword [esi + 0x4c]
call fcn.005dfc20
mov eax, 0x80004005
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx]
call dword [eax + 0x44]
test al, al
mov ecx, dword [esi + 0x4c]
je 0x556d1e
push 0
call fcn.005dfdf0
test al, al
mov ecx, dword [esi + 0x4c]
je 0x556d1e
call fcn.005dfc20
mov ecx, dword [0x781e94]
push 2
push 0x10
push 0
call fcn.005e6d80
mov ecx, dword [0x781e94]
push 2
push 0x11
push 0
call fcn.005e6d80
mov byte [esi + 0x80], 1
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret