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

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x98]
mov ecx, dword [eax + 0x78]
cmp dword [esp + 0x5c], ecx
jge 0x4c0c4c
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 0x7c]
mov ebx, dword [esp + 0x60]
cmp ebx, ecx
jge 0x4c0c5d
mov ebx, ecx
mov dword [esp + 0x60], ebx
mov ecx, dword [eax + 0x80]
cmp dword [esp + 0x64], ecx
jle 0x4c0c6d
mov dword [esp + 0x64], ecx
mov ecx, dword [eax + 0x84]
mov esi, dword [esp + 0x68]
cmp esi, ecx
jle 0x4c0c81
mov esi, ecx
mov dword [esp + 0x68], esi
mov ecx, dword [eax + 0x80]
add ecx, 1
mov dword [esp + 0x20], ecx
xor ecx, ecx
push ecx
push 0x85e214
push 0x85e200
push ecx
push eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
call fcn.0071f44c
add esp, 0x14
cmp ebx, esi
mov ebp, eax
mov dword [esp + 0x14], ebx
jg 0x4c1084
jmp 0x4c0cc0
mov esi, dword [esp + 0x5c]
cmp esi, dword [esp + 0x64]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x1c], esi
jg 0x4c1073
jmp 0x4c0ce0
mov ecx, dword [edi + 0x98]
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], esi
call fcn.00607cd0
test eax, eax
jne 0x4c0d0b
mov ecx, dword [edi + 0x100]
mov edx, dword [ecx]
push eax
push ebx
push esi
call dword [edx + 0x48]
jmp 0x4c1062
sub esp, 8
test ebp, ebp
je 0x4c0f56
mov eax, dword [ebp + 0x5c]
mov ecx, eax
imul eax, dword [esp + 0x40]
imul ecx, dword [esp + 0x44]
mov edx, esp
mov dword [edx + 4], ecx
mov ecx, ebp
mov dword [edx], eax
call fcn.0061ce70
test al, al
mov byte [esp + 0x13], al
je 0x4c0e53
mov eax, dword [ebp + 0x58]
cdq
idiv dword [ebp + 0x5c]
mov esi, dword [esp + 0x38]
mov ecx, eax
mov eax, esi
cdq
idiv ecx
mov eax, dword [esp + 0x3c]
mov ebx, edx
cdq
idiv ecx
and ebx, reloc.WS2_32.dll_closesocket
jns 0x4c0d67
dec ebx
or ebx, 0xfffffffc
inc ebx
and edx, reloc.WS2_32.dll_closesocket
jns 0x4c0d74
dec edx
or edx, 0xfffffffc
inc edx
movzx eax, byte [esp + 0x13]
lea ecx, [eax*8]
sub ecx, eax
add ecx, ecx
sub ecx, eax
lea ecx, [edx + ecx*2]
cmp byte [ebx + ecx*4 + 0x9a940d], 0
lea ecx, [eax*8]
je 0x4c0de9
sub ecx, eax
add ecx, ecx
sub ecx, eax
lea eax, [edx + ebx]
lea edx, [eax + edx*4]
lea eax, [edx + ecx*8]
cmp byte [eax + 0x9a93e4], 0
jne 0x4c0e38
cmp byte [eax + 0x9a93e5], 0
je 0x4c0dc4
lea eax, [esi + 1]
jmp 0x4c0e3a
cmp byte [eax + 0x9a93ea], 0
mov ecx, dword [esp + 0x3c]
je 0x4c0dd9
add ecx, 1
lea eax, [esi + 1]
jmp 0x4c0e3e
cmp byte [eax + 0x9a93e9], 0
mov eax, esi
je 0x4c0e3e
add ecx, 1
jmp 0x4c0e3e
sub ecx, eax
add ecx, ecx
sub ecx, eax
lea eax, [edx + ebx]
lea edx, [eax + edx*4]
lea eax, [edx + ecx*8]
cmp byte [eax + 0x9a93e4], 0
je 0x4c0e38
cmp byte [eax + 0x9a93e5], 0
jne 0x4c0e0f
lea eax, [esi + 1]
jmp 0x4c0e3a
cmp byte [eax + 0x9a93ea], 0
jne 0x4c0e24
mov ecx, dword [esp + 0x3c]
add ecx, 1
lea eax, [esi + 1]
jmp 0x4c0e3e
cmp byte [eax + 0x9a93e9], 0
jne 0x4c0e38
mov ecx, dword [esp + 0x3c]
add ecx, 1
mov eax, esi
jmp 0x4c0e3e
mov eax, esi
mov ecx, dword [esp + 0x3c]
sub esp, 8
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0xe0]
mov eax, dword [ebp + 0x5c]
mov ecx, eax
imul eax, dword [esp + 0x38]
imul ecx, dword [esp + 0x3c]
sub esp, 8
mov edx, esp
mov dword [edx + 4], ecx
mov ecx, ebp
mov dword [edx], eax
call fcn.0061ced0
test al, al
mov byte [esp + 0x13], al
je 0x4c0f53
mov eax, dword [ebp + 0x58]
cdq
idiv dword [ebp + 0x5c]
mov ebx, dword [esp + 0x38]
mov esi, eax
mov eax, ebx
cdq
idiv esi
mov eax, dword [esp + 0x3c]
mov ecx, edx
cdq
idiv esi
and ecx, reloc.WS2_32.dll_closesocket
jns 0x4c0ea7
dec ecx
or ecx, 0xfffffffc
inc ecx
and edx, reloc.WS2_32.dll_closesocket
jns 0x4c0eb4
dec edx
or edx, 0xfffffffc
inc edx
movzx eax, byte [esp + 0x13]
lea esi, [eax + eax*8]
lea esi, [edx + esi*2]
cmp byte [ecx + esi*4 + 0x9a728d], 0
je 0x4c0ed3
mov esi, 0x57
jmp 0x4c0f76
add ecx, edx
lea eax, [eax + eax*8]
lea edx, [ecx + edx*4]
lea eax, [edx + eax*8]
cmp byte [eax + 0x9a7264], 0
je 0x4c0f3c
cmp byte [eax + 0x9a7265], 0
jne 0x4c0ef5
lea eax, [ebx + 1]
jmp 0x4c0f3e
cmp byte [eax + 0x9a726a], 0
jne 0x4c0f19
mov ecx, dword [esp + 0x3c]
add ecx, 1
sub esp, 8
lea eax, [ebx + 1]
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
mov eax, dword [ebp]
mov ecx, ebp
jmp 0x4c0f6d
cmp byte [eax + 0x9a7269], 0
jne 0x4c0f3c
mov ecx, dword [esp + 0x3c]
add ecx, 1
sub esp, 8
mov eax, ebx
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
mov eax, dword [ebp]
mov ecx, ebp
jmp 0x4c0f6d
mov eax, ebx
mov ecx, dword [esp + 0x3c]
sub esp, 8
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
mov eax, dword [ebp]
mov ecx, ebp
jmp 0x4c0f6d
sub esp, 8
mov ecx, dword [esp + 0x40]
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x44]
mov dword [eax + 4], edx
mov ecx, dword [edi + 0x98]
mov eax, dword [ecx]
call dword [eax + 0xe0]
movzx esi, al
mov ecx, dword [edi + 0x98]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx + esi*4 + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, eax
mov eax, dword [esp + 0x1c]
cdq
idiv ecx
mov ebx, edx
mov edx, dword [edi + 0x98]
mov eax, dword [edx + 0x28]
mov esi, dword [eax + esi*4 + 8]
mov eax, dword [esp + 0x14]
cdq
idiv dword [esi + 0x18]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
push edx
push ebx
call dword [eax + 0x20]
mov ecx, dword [esp + 0x38]
push 0
mov ebx, eax
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x48]
mov dword [eax + 4], edx
mov ecx, dword [edi + 0x98]
mov eax, dword [ecx]
call dword [eax + 0xd8]
mov esi, ebx
shl esi, 0x10
or esi, ebx
and esi, 0x7e0f81f
imul esi, eax
shr esi, 5
and esi, 0x7e0f81f
test ebp, ebp
je 0x4c103d
mov eax, dword [ebp + 0x5c]
mov ecx, eax
imul eax, dword [esp + 0x38]
imul ecx, dword [esp + 0x3c]
sub esp, 8
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x174]
test al, 7
je 0x4c103d
movzx eax, al
shr eax, 5
mov ecx, 0x2e00000
sub ecx, esi
imul eax, ecx
shl esi, 5
add eax, esi
shr eax, 5
and eax, 0x7e0f81f
mov esi, eax
mov ecx, dword [edi + 0x100]
mov edx, dword [ecx]
mov eax, esi
shr eax, 0x10
or eax, esi
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [edx + 0x48]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
add esi, 1
cmp esi, dword [esp + 0x64]
mov dword [esp + 0x1c], esi
jle 0x4c0ce0
add ebx, 1
cmp ebx, dword [esp + 0x68]
mov dword [esp + 0x14], ebx
jle 0x4c0cc0
mov ebx, dword [esp + 0x20]
add ebx, 0xffffffff
cmp dword [esp + 0x64], ebx
jl 0x4c10ca
mov esi, dword [esp + 0x60]
cmp esi, dword [esp + 0x68]
jg 0x4c10ca
jmp 0x4c10a0
mov ecx, dword [edi + 0x100]
mov eax, dword [ecx]
push esi
mov edx, ecx
mov ebp, dword [edx]
push ebx
call dword [eax + 0x20]
mov ecx, dword [esp + 0x20]
push eax
push esi
push ecx
mov ecx, dword [edi + 0x100]
call dword [ebp + 0x48]
add esi, 1
cmp esi, dword [esp + 0x68]
jle 0x4c10a0
cmp dword [esp + 0x68], ebx
jl 0x4c110a
mov esi, dword [esp + 0x5c]
cmp esi, dword [esp + 0x64]
jg 0x4c110a
lea ebx, [ebx]
mov ecx, dword [edi + 0x100]
mov eax, dword [ecx]
push ebx
mov edx, ecx
mov ebp, dword [edx]
push esi
call dword [eax + 0x20]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, dword [edi + 0x100]
push esi
call dword [ebp + 0x48]
add esi, 1
cmp esi, dword [esp + 0x64]
jle 0x4c10e0
mov eax, dword [edi + 0x98]
mov ebp, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov ebx, dword [eax + 0x78]
add eax, 0x78
add ebp, 0xffffffff
add esi, 0xffffffff
add edx, 1
add ecx, 1
cmp ebp, ebx
mov dword [esp + 0x48], ebp
jge 0x4c113e
mov dword [esp + 0x48], ebx
mov ebx, dword [eax + 4]
cmp esi, ebx
jge 0x4c1147
mov esi, ebx
mov ebx, dword [eax + 8]
cmp edx, ebx
jle 0x4c1150
mov edx, ebx
mov eax, dword [eax + 0xc]
cmp ecx, eax
jle 0x4c1159
mov ecx, eax
mov eax, dword [edi + 0x98]
fild dword [edi + 0xe8]
mov ebx, dword [eax + 0x5c]
fild dword [eax + 0x50]
mov ebp, ebx
fnstcw word [esp + 0x5c]
imul esi, ebx
imul ebp, dword [esp + 0x48]
mov dword [esp + 0x48], ebp
movzx eax, word [esp + 0x5c]
fild dword [esp + 0x48]
or ah, 0xc
fmul st(2)
mov dword [esp + 0x4c], esi
fdiv st(1)
mov dword [esp + 0x24], eax
fadd dword [0x786674]
fldcw word [esp + 0x24]
fistp dword [esp + 0x40]
fldcw word [esp + 0x5c]
fild dword [edi + 0xec]
fnstcw word [esp + 0x5c]
fstp dword [esp + 0x24]
movzx eax, word [esp + 0x5c]
fild dword [esp + 0x4c]
or ah, 0xc
fmul dword [esp + 0x24]
fdiv st(1)
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x98]
mov esi, dword [eax + 0x5c]
fadd dword [0x786674]
imul edx, esi
imul ecx, esi
fldcw word [esp + 0x20]
fistp dword [esp + 0x44]
fstp st(0)
fldcw word [esp + 0x5c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x44]
fild dword [eax + 0x50]
fnstcw word [esp + 0x5c]
fstp dword [esp + 0x20]
movzx eax, word [esp + 0x5c]
fild dword [esp + 0x30]
or ah, 0xc
fmul st(1)
fdiv dword [esp + 0x20]
mov dword [esp + 0x1c], eax
fadd dword [0x786674]
fldcw word [esp + 0x1c]
fistp dword [esp + 0x48]
fstp st(0)
fldcw word [esp + 0x5c]
fild dword [esp + 0x34]
fnstcw word [esp + 0x5c]
fmul dword [esp + 0x24]
movzx eax, word [esp + 0x5c]
or ah, 0xc
test ecx, ecx
fdiv dword [esp + 0x20]
mov dword [esp + 0x24], eax
fadd dword [0x786674]
fldcw word [esp + 0x24]
fistp dword [esp + 0x4c]
fldcw word [esp + 0x5c]
jge 0x4c1267
xor ecx, ecx
mov dword [esp + 0x44], ecx
mov ebx, dword [esp + 0x40]
test ebx, ebx
jge 0x4c1275
xor ebx, ebx
mov dword [esp + 0x40], ebx
mov eax, dword [edi + 0xfc]
mov edx, dword [eax + 0x10]
mov esi, dword [esp + 0x4c]
lea ebp, [edx - 1]
cmp esi, ebp
jle 0x4c128f
mov esi, edx
mov dword [esp + 0x4c], esi
mov eax, dword [eax + 0xc]
lea edx, [eax - 1]
cmp dword [esp + 0x48], edx
jle 0x4c129f
mov dword [esp + 0x48], eax
fild dword [esp + 0x44]
fmul dword [edi + 0xb4]
fstp dword [esp + 0x18]
fild dword [esp + 0x40]
fmul dword [edi + 0xb0]
fstp dword [esp + 0x24]
fld dword [esp + 0x18]
fcomp dword [0x780ed8]
fnstsw ax
test ah, 5
jp 0x4c12d4
mov dword [esp + 0x18], 0
fld dword [esp + 0x24]
fcomp dword [0x780ed8]
fnstsw ax
test ah, 5
jp 0x4c12ed
mov dword [esp + 0x24], 0
cmp ecx, esi
mov dword [esp + 0x14], ecx
jge 0x4c14b5
jmp 0x4c1300
mov ebx, dword [esp + 0x40]
nop
fld dword [esp + 0x18]
call fcn.007202a4
fnstcw word [esp + 0x5c]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
mov eax, dword [edi + 0x98]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
fsubr dword [esp + 0x18]
fimul dword [eax + 0x5c]
movzx eax, word [esp + 0x5c]
or ah, 0xc
cmp ebx, dword [esp + 0x48]
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp dword [esp + 0x30]
fldcw word [esp + 0x5c]
jge 0x4c1492
lea esp, [esp]
fld dword [esp + 0x20]
call fcn.007202a4
mov edx, dword [edi + 0x98]
mov ecx, dword [edi + 0x100]
mov esi, eax
mov dword [esp + 0x5c], esi
fild dword [esp + 0x5c]
fnstcw word [esp + 0x5c]
movzx eax, word [esp + 0x5c]
fsubr dword [esp + 0x20]
or ah, 0xc
fimul dword [edx + 0x5c]
mov edx, dword [esp + 0x1c]
push edx
push esi
mov dword [esp + 0x30], eax
fldcw word [esp + 0x30]
mov eax, dword [ecx]
fistp dword [esp + 0x30]
fldcw word [esp + 0x64]
call dword [eax + 0x20]
mov ecx, dword [edi + 0x100]
mov edx, dword [ecx]
mov ebp, eax
mov eax, dword [esp + 0x1c]
push eax
lea eax, [esi + 1]
push eax
call dword [edx + 0x20]
mov ecx, dword [edi + 0x100]
mov edx, dword [ecx]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
add eax, 1
push eax
lea eax, [esi + 1]
push eax
call dword [edx + 0x20]
mov ecx, dword [edi + 0x100]
mov edx, dword [ecx]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
add eax, 1
push eax
push esi
call dword [edx + 0x20]
mov esi, eax
shl esi, 0x10
or esi, eax
mov eax, dword [esp + 0x5c]
mov ecx, eax
shl ecx, 0x10
or ecx, eax
mov edx, ebp
shl edx, 0x10
or edx, ebp
mov ebp, dword [esp + 0x28]
and ecx, 0x7e0f81f
and edx, 0x7e0f81f
sub ecx, edx
imul ecx, ebp
shl edx, 5
add ecx, edx
mov edx, dword [esp + 0x2c]
mov eax, edx
shl eax, 0x10
or eax, edx
and eax, 0x7e0f81f
and esi, 0x7e0f81f
sub eax, esi
imul eax, ebp
shl esi, 5
add eax, esi
shr eax, 5
shr ecx, 5
and eax, 0x7e0f81f
and ecx, 0x7e0f81f
sub eax, ecx
imul eax, dword [esp + 0x30]
shl ecx, 5
add eax, ecx
mov ecx, dword [edi + 0xfc]
mov edx, dword [ecx]
shr eax, 5
and eax, 0x7e0f81f
mov esi, eax
shr esi, 0x10
or esi, eax
mov eax, dword [esp + 0x14]
push esi
push eax
push ebx
call dword [edx + 0x48]
fld dword [esp + 0x20]
fadd dword [edi + 0xb0]
add ebx, 1
cmp ebx, dword [esp + 0x48]
fstp dword [esp + 0x20]
jl 0x4c1350
fld dword [esp + 0x18]
mov eax, dword [esp + 0x14]
fadd dword [edi + 0xb4]
add eax, 1
cmp eax, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
fstp dword [esp + 0x18]
jl 0x4c12fb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x10