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

Disassembly:
mov eax, dword [0x57ede0]
sub esp, 0x78
push ebx
push ebp
push esi
xor esi, esi
test eax, eax
push edi
mov ebp, ecx
jle 0x4c6cb9
mov edx, dword [esi*4 + 0x57ee68]
mov ebx, dword [0x588e8c]
or edi, 0xffffffff
xor ecx, ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [0x5a3cb0]
add ebx, eax
mov eax, dword [0x5a64c8]
add ebx, eax
mov eax, dword [0x5a1780]
add eax, ebx
test eax, eax
jle 0x4c6c04
mov ebx, 0x5a29f0
cmp ebx, dword [esp + 0x14]
je 0x4c6c02
inc ecx
add ebx, 0xf0
cmp ecx, eax
jl 0x4c6bef
jmp 0x4c6c04
mov edi, ecx
test esi, esi
jne 0x4c6c0c
mov dword [esp + 0x10], edi
mov ecx, dword [ebp + esi*4 + 0x1250]
push edx
mov eax, dword [ecx]
call dword [eax + 0x40]
test esi, esi
jne 0x4c6c51
mov ecx, dword [ebp + 0x12a0]
push 3
call fcn.00477190
mov eax, dword [0x595580]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
add ecx, ecx
sub ecx, eax
lea edx, [edi + ecx*2]
mov ecx, dword [ebp + 0x12a0]
mov eax, dword [edx*4 + 0x5a17d0]
push eax
call fcn.004771c0
jmp 0x4c6c9a
mov ecx, dword [ebp + esi*4 + 0x12a0]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x4e4], 3
mov ecx, dword [0x595580]
lea eax, [ecx + ecx*2]
lea eax, [eax + eax*8]
add eax, eax
sub eax, ecx
add eax, eax
lea ecx, [eax + edx]
add eax, edi
mov edx, dword [eax*4 + 0x5a17d0]
mov edi, dword [ecx*4 + 0x5a17d0]
mov ecx, dword [ebp + esi*4 + 0x12a0]
sub edx, edi
push edx
call fcn.004ca020
mov eax, dword [ebp + esi*4 + 0x12a0]
inc esi
mov dword [eax + 0x458], 3
mov eax, dword [0x57ede0]
cmp esi, eax
jl 0x4c6bb8
cdq
idiv dword [0x5c087c]
mov dword [ebp + 0x38], eax
mov eax, dword [0x57ede0]
cdq
idiv dword [0x5c087c]
test edx, edx
jle 0x4c6cd7
inc eax
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x38]
xor ebx, ebx
test eax, eax
mov dword [ebp + 0x34], 1
jle 0x4c6e86
lea esi, [ebp + 0x860]
mov ecx, dword [esi]
push 1
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, dword [esi + 0x14]
push 1
mov eax, dword [ecx]
call dword [eax + 0x14]
mov al, byte [ebp + 0x3e]
test al, al
je 0x4c6d1f
fld dword [0x5c07d4]
fmul dword [0x554ea8]
fadd dword [0x5c075c]
jmp 0x4c6d25
fld dword [0x555130]
mov ecx, dword [0x5c087c]
mov edi, dword [esi + 0x14]
imul ecx, ebx
fst dword [esp + 0x14]
fstp dword [esp + 0x38]
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x40]
fild dword [esp + 0x10]
lea ecx, [esp + 0x38]
push eax
push ecx
mov ecx, edi
fmul dword [0x5c0804]
fadd dword [0x5c084c]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
fadd dword [0x5c07a4]
fadd dword [0x576cbc]
fstp dword [esp + 0x44]
mov edx, dword [edi]
call dword [edx + 8]
lea edx, [edi + 0xc]
lea ecx, [esp + 0x30]
push edx
mov dword [edi + 0x458], 8
call fcn.00444d40
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [edi + 0x44c], eax
mov dword [edi + 0x450], ecx
mov eax, dword [0x5c087c]
mov edx, dword [esp + 0x14]
imul eax, ebx
mov dword [esp + 0x14], eax
mov edi, dword [esi]
fild dword [esp + 0x14]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], edx
push eax
fmul dword [0x5c0804]
push ecx
mov ecx, edi
fadd dword [0x5c084c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
fadd dword [0x5c07bc]
fadd dword [0x5c07a4]
fadd dword [0x576cbc]
fstp dword [esp + 0x2c]
mov edx, dword [edi]
call dword [edx + 8]
lea edx, [edi + 0xc]
lea ecx, [esp + 0x18]
push edx
mov dword [edi + 0x458], 8
call fcn.00444d40
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x44c], eax
mov dword [edi + 0x450], ecx
mov ecx, dword [esi + 0x14]
fld dword [0x5c081c]
mov edx, dword [ecx]
push ecx
fstp dword [esp]
call dword [edx + 0x30]
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
fld dword [0x5c08ac]
push ecx
fstp dword [esp]
call dword [eax + 0x34]
mov ecx, dword [esi]
fld dword [0x5c081c]
mov edx, dword [ecx]
push ecx
fstp dword [esp]
call dword [edx + 0x30]
mov ecx, dword [esi]
fld dword [0x5c08ac]
mov eax, dword [ecx]
push ecx
fstp dword [esp]
call dword [eax + 0x34]
mov eax, dword [ebp + 0x38]
inc ebx
add esi, 4
cmp ebx, eax
jl 0x4c6cf1
mov ecx, dword [0x57ede0]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x14], eax
jle 0x4c719c
mov byte [esp + 0x10], al
mov byte [esp + 0x11], al
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0xc0
lea edi, [ebp + 0x40]
lea esi, [ebp + 0x12a0]
mov cl, byte [ebp + 0x3e]
test cl, cl
je 0x4c6f22
mov ecx, eax
and ecx, reloc.WS2_32.dll_closesocket
jns 0x4c6eca
dec ecx
or ecx, 0xfffffffc
inc ecx
mov dword [esp + 0x18], ecx
lea ebx, [eax + 1]
fild dword [esp + 0x18]
fmul dword [0x5c07d4]
fadd dword [0x5c075c]
fst dword [esp + 0x28]
fld dword [0x5c0804]
fimul dword [esp + 0x14]
mov dword [esp + 0x14], ebx
fadd dword [0x5c07a4]
fadd dword [0x576cbc]
fstp dword [esp + 0x2c]
fld dword [0x5c0804]
fimul dword [esp + 0x14]
fadd dword [0x5c07a4]
fadd dword [0x576cbc]
fstp dword [esp + 0x34]
jmp 0x4c6fc2
fld dword [0x5c08f4]
mov edx, eax
and edx, reloc.WS2_32.dll_closesocket
jns 0x4c6f37
dec edx
or edx, 0xfffffffc
inc edx
mov dword [esp + 0x18], edx
lea ebx, [eax + 1]
fild dword [esp + 0x18]
fmul dword [0x5c07d4]
fsubp st(1)
fst dword [esp + 0x38]
fld dword [0x5c0804]
fimul dword [esp + 0x14]
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], ecx
fadd dword [0x5c07a4]
fadd dword [0x576cbc]
fstp dword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
fstp dword [esp + 0x40]
fld dword [0x5c0804]
fimul dword [esp + 0x14]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
fadd dword [0x5c07a4]
fadd dword [0x576cbc]
fstp dword [esp + 0x44]
fld dword [esp + 0x38]
fsub qword [0x55e098]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x34], ecx
fstp dword [esp + 0x28]
fld dword [esp + 0x40]
fsub qword [0x55e098]
fadd qword [0x55e478]
mov ecx, dword [esi - 0x50]
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
push eax
fst dword [esp + 0x38]
fsub dword [0x55e528]
fstp dword [esp + 0x50]
fld dword [esp + 0x3c]
fstp dword [esp + 0x54]
fld dword [esp + 0x30]
fsub dword [0x55e528]
fstp dword [esp + 0x58]
fld dword [esp + 0x34]
fstp dword [esp + 0x5c]
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [esi - 0x50]
fld dword [0x5c081c]
mov edx, dword [ecx]
push ecx
fstp dword [esp]
call dword [edx + 0x30]
mov ecx, dword [esi - 0x50]
fld dword [0x5c08ac]
mov eax, dword [ecx]
push ecx
fstp dword [esp]
call dword [eax + 0x34]
fld dword [esp + 0x30]
fsub dword [0x55d5b8]
mov ecx, dword [esi]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x64]
fstp dword [esp + 0x5c]
fld dword [esp + 0x38]
fadd dword [0x554674]
push eax
fst dword [esp + 0x20]
fstp dword [esp + 0x64]
fld dword [esp + 0x30]
fadd dword [0x555130]
fst dword [esp + 0x1c]
fstp dword [esp + 0x68]
fld dword [esp + 0x34]
fadd dword [0x55d5bc]
fst dword [esp + 0x28]
fstp dword [esp + 0x6c]
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [esi]
fld dword [0x5c081c]
mov edx, dword [ecx]
push ecx
fstp dword [esp]
call dword [edx + 0x30]
mov ecx, dword [esi]
fld dword [0x5c08ac]
mov eax, dword [ecx]
push ecx
fstp dword [esp]
call dword [eax + 0x34]
fld dword [esp + 0x30]
fsub dword [0x55e0a0]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
fstp dword [esp + 0x68]
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x50]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x68]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x74]
push eax
call dword [edx + 8]
mov eax, dword [esi + 0x50]
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x40], ecx
mov byte [eax + 0x48], 0
mov ecx, dword [esi + 0x50]
fld dword [0x5c081c]
mov edx, dword [ecx]
push ecx
fstp dword [esp]
call dword [edx + 0x30]
mov ecx, dword [esi + 0x50]
fld dword [0x5c08ac]
mov eax, dword [ecx]
push ecx
fstp dword [esp]
call dword [eax + 0x34]
fld dword [0x5c0774]
fadd dword [esp + 0x28]
mov edx, dword [edi]
lea eax, [esp + 0x78]
lea ecx, [esp + 0x80]
push eax
fstp dword [esp + 0x7c]
fld dword [esp + 0x30]
fadd dword [0x561d40]
push ecx
mov ecx, edi
fstp dword [esp + 0x84]
fld dword [0x5c08dc]
fadd dword [esp + 0x30]
fstp dword [esp + 0x88]
fld dword [esp + 0x34]
fadd dword [0x55859c]
fstp dword [esp + 0x8c]
call dword [edx + 8]
fld dword [0x5c081c]
mov edx, dword [edi]
push ecx
fstp dword [esp]
mov ecx, edi
call dword [edx + 0x30]
fld dword [0x5c08ac]
mov eax, dword [edi]
push ecx
fstp dword [esp]
mov ecx, edi
call dword [eax + 0x34]
mov ecx, dword [0x57ede0]
mov eax, ebx
add esi, 4
add edi, 0x68
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4c6eb4
mov ecx, dword [0x5c0864]
pop edi
mov dword [ebp + 0x30], ecx
mov byte [ebp + 0x3c], 1
mov byte [ebp + 0x3d], 0
pop esi
pop ebp
pop ebx
add esp, 0x78
ret