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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x74
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push ebx
mov byte [eax], 0
cmp byte [ecx], 0
push esi
push edi
je 0x4eecac
mov esi, dword [ebp + 8]
mov edx, dword [esi + 8]
mov ebx, dword [esi + 4]
mov edi, dword [esi]
xor ecx, ecx
xor eax, eax
cmp edx, ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], edi
jle 0x4ee590
lea esp, [esp]
mov edx, dword [esi + 4]
mov word [edx + eax*8 + 6], cx
mov edx, dword [esi + 8]
inc eax
cmp eax, edx
jl 0x4ee580
mov edx, dword [esi + 8]
xor eax, eax
cmp edx, ecx
mov dword [esp + 0x3c], eax
jle 0x4ee8b9
mov ecx, dword [esi + 4]
lea eax, [ecx + eax*8]
mov edx, 1
cmp word [eax + 6], dx
je 0x4ee8a3
movzx ecx, word [eax + 2]
mov word [eax + 6], dx
mov word [ebx + ecx*8 + 6], dx
movzx eax, word [eax]
lea ecx, [ebx + ecx*8]
movzx ecx, word [ecx]
mov dword [esp + 0x1c], ecx
mov esi, eax
shl ecx, 4
add ecx, edi
shl esi, 4
add esi, edi
fld dword [ecx]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], eax
fsub dword [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
fstp dword [esp + 0x50]
xor edx, edx
cmp dword [esp + 0x1c], eax
fld dword [ecx + 4]
fsub dword [esi + 4]
mov dword [esp + 0x34], 0x358637bd
fstp dword [esp + 0x54]
fld dword [ecx + 8]
fsub dword [esi + 8]
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], connect
mov dword [esp + 0x48], edx
fstp dword [esp + 0x58]
fld dword [esp + 0x54]
fmul dword [esp + 0x54]
fld dword [esp + 0x58]
fmul dword [esp + 0x58]
faddp st(1)
fld dword [esp + 0x50]
fmul dword [esp + 0x50]
faddp st(1)
fstp dword [esp + 0x38]
je 0x4ee841
fld dword [0x641de0]
fld dword [esi + 0xc]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4ee841
fld dword [0x641de0]
fld dword [ecx + 0xc]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4ee841
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
inc ecx
cmp eax, ecx
mov dword [esp + 0x14], eax
jge 0x4ee841
shl eax, 4
lea ecx, [eax + edi + 4]
mov dword [esp + 0x20], ecx
mov edi, edi
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x30], eax
je 0x4ee821
cmp dword [esp + 0x1c], eax
je 0x4ee821
fld dword [0x641de0]
mov ecx, dword [esp + 0x20]
fld dword [ecx + 8]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4ee821
fld dword [ecx - 4]
mov eax, dword [ebp + 0x14]
fsub dword [esi]
fld dword [ecx]
fsub dword [esi + 4]
fld dword [ecx + 4]
fsub dword [esi + 8]
fld dword [esp + 0x58]
fmul st(1)
fld st(3)
fmul dword [esp + 0x50]
faddp st(1)
fld st(2)
fmul dword [esp + 0x54]
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x54]
fmul st(1)
fld st(2)
fmul dword [esp + 0x58]
fsubp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x58]
fmul st(3)
fxch st(1)
fmul dword [esp + 0x50]
fsubp st(1)
fstp dword [esp + 0x74]
fmul dword [esp + 0x50]
fld dword [esp + 0x54]
fmul st(2)
fsubp st(1)
fstp st(1)
fld dword [esp + 0x70]
fmul dword [esp + 0x70]
fld st(1)
fmul st(2)
faddp st(1)
fld dword [esp + 0x74]
fmul dword [esp + 0x74]
faddp st(1)
fcomp dword [eax + 8]
fnstsw ax
fstp st(0)
test ah, 5
jp 0x4ee821
fld dword [esp + 0x18]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 5
jp 0x4ee7a5
mov eax, dword [esp + 0x4c]
and eax, 0x7fffffff
cmp edx, eax
jne 0x4ee788
lea ecx, [esp + 0x44]
push 4
push ecx
call fcn.0054d2c0
mov edx, dword [esp + 0x50]
add esp, 8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ecx
jmp 0x4ee818
fld dword [esp + 0x18]
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 0x41
mov eax, dword [esp + 0x4c]
jne 0x4ee7f1
and eax, 0x7fffffff
cmp edx, eax
jne 0x4ee7d4
lea edx, [esp + 0x44]
push 4
push edx
call fcn.0054d2c0
mov edx, dword [esp + 0x50]
add esp, 8
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ecx
jmp 0x4ee818
and eax, 0x7fffffff
cmp edx, eax
jne 0x4ee80d
lea edx, [esp + 0x44]
push 4
push edx
call fcn.0054d2c0
mov edx, dword [esp + 0x50]
add esp, 8
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
mov dword [eax + edx*4], ecx
mov edx, dword [esp + 0x48]
inc edx
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
inc ecx
inc eax
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x4ee6a0
xor ecx, ecx
test edx, edx
jle 0x4ee87d
jmp 0x4ee850
mov eax, dword [esp + 0x44]
mov eax, dword [eax + ecx*4]
cmp eax, dword [esp + 0x24]
je 0x4ee878
cmp eax, dword [esp + 0x28]
je 0x4ee878
mov edx, dword [ebp + 0x18]
shl eax, 4
mov dword [eax + edi + 0xc], 0x3f800000
mov byte [edx], 1
mov edx, dword [esp + 0x48]
inc ecx
cmp ecx, edx
jl 0x4ee850
mov eax, dword [esp + 0x4c]
test eax, eax
js 0x4ee8a0
mov ecx, dword [0x9617f0]
mov edx, dword [ecx]
and eax, 0x7fffffff
push 0x12
shl eax, 2
push eax
mov eax, dword [esp + 0x4c]
push eax
call dword [edx + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x4ee5a1
xor ecx, ecx
mov edx, dword [esi + 8]
xor eax, eax
cmp edx, ecx
jle 0x4ee8d2
mov edx, dword [esi + 4]
mov word [edx + eax*8 + 6], cx
mov edx, dword [esi + 8]
inc eax
cmp eax, edx
jl 0x4ee8c2
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, ecx
sub edx, eax
cmp edx, 2
jle 0x4eecac
cmp dword [esi + 8], 2
jle 0x4eecac
inc ecx
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ecx
jge 0x4eecac
shl eax, 4
lea eax, [eax + edi + 0xc]
mov dword [esp + 0x20], eax
jmp 0x4ee910
fld dword [0x641de0]
fld dword [eax]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4eec8c
mov ecx, dword [esi + 8]
xor eax, eax
xor edx, edx
cmp ecx, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], connect
mov dword [esp + 0x3c], eax
jle 0x4eec69
jmp 0x4ee950
mov ecx, dword [esi + 4]
cmp word [ecx + eax*8 + 6], 1
lea ecx, [ecx + eax*8]
je 0x4eeb13
movzx ecx, word [ecx]
cmp ecx, dword [esp + 0x24]
jne 0x4eeb13
mov edx, dword [esi + 4]
mov word [edx + eax*8 + 6], 1
mov ecx, dword [esi + 4]
movzx edx, word [ecx + eax*8 + 2]
lea esi, [ebx + edx*8]
mov dword [esp + 0x38], esi
jmp 0x4ee990
movzx eax, word [esi + 4]
mov word [ebx + eax*8 + 6], 1
movzx edx, word [esi + 4]
movzx eax, word [ebx + edx*8]
movzx ecx, word [esi]
lea edx, [ebx + edx*8]
movzx edx, word [edx + 4]
movzx edx, word [ebx + edx*8]
shl ecx, 4
add ecx, edi
shl eax, 4
add eax, edi
fld dword [ecx]
shl edx, 4
add edx, edi
fsub dword [eax]
mov edi, dword [esp + 0x48]
mov ebx, edi
inc edi
fstp dword [esp + 0x70]
fld dword [ecx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x74]
fld dword [ecx + 8]
fsub dword [eax + 8]
fstp dword [esp + 0x78]
fld dword [edx]
fsub dword [eax]
fstp dword [esp + 0x60]
fld dword [edx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x64]
fld dword [edx + 8]
fsub dword [eax + 8]
mov eax, dword [esp + 0x4c]
and eax, 0x7fffffff
cmp eax, edi
fstp dword [esp + 0x68]
jge 0x4eea24
add eax, eax
cmp edi, eax
jl 0x4eea14
mov eax, edi
push 0x10
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0054d250
add esp, 0xc
fld dword [esp + 0x68]
mov eax, dword [esp + 0x44]
fmul dword [esp + 0x74]
shl ebx, 4
fld dword [esp + 0x64]
add ebx, eax
fmul dword [esp + 0x78]
mov ecx, ebx
mov dword [esp + 0x48], edi
mov dword [ecx + 0xc], 0
fsubp st(1)
fst dword [ecx]
fld dword [esp + 0x60]
fmul dword [esp + 0x78]
fld dword [esp + 0x68]
fmul dword [esp + 0x70]
fsubp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x64]
mov edx, dword [esp + 0x18]
fmul dword [esp + 0x70]
mov dword [ecx + 4], edx
fld dword [esp + 0x60]
fmul dword [esp + 0x74]
fsubp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
mov eax, dword [esp + 0x14]
fmul dword [esp + 0x14]
mov dword [ecx + 8], eax
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fld st(1)
fmul st(2)
faddp st(1)
fld dword [0x641de0]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4eeabb
fsqrt
fdivr dword [0x6419bc]
jmp 0x4eeac3
fstp st(0)
fld dword [0x641de0]
fld st(0)
mov eax, dword [esp + 0x2c]
fmul st(2)
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
fstp dword [ecx]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [ecx + 4]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [ecx + 8]
fmul dword [0x641de0]
fstp dword [ecx + 0xc]
movzx ecx, word [esi + 4]
movzx edx, word [eax + ecx*8 + 2]
fstp st(0)
lea esi, [eax + edx*8]
cmp esi, dword [esp + 0x38]
jne 0x4ee990
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x4ee950
test edx, edx
jle 0x4eec69
fld dword [0x641de0]
mov eax, dword [esp + 0x44]
fld dword [0x641de0]
add eax, 8
fst dword [esp + 0x54]
mov ecx, edx
fld dword [0x641de0]
fst dword [esp + 0x58]
fld dword [0x641de0]
fxch st(3)
add eax, 0x10
dec ecx
fadd dword [eax - 0x18]
fxch st(3)
fxch st(2)
fadd dword [eax - 0x14]
fxch st(2)
fxch st(1)
fadd dword [eax - 0x10]
fxch st(1)
fadd dword [eax - 0xc]
jne 0x4eeb54
fxch st(1)
mov ecx, dword [ebp + 0x14]
fst dword [esp + 0x58]
fxch st(2)
fst dword [esp + 0x54]
fstp st(1)
fxch st(1)
fld st(2)
fmul st(3)
fld st(1)
fmul st(2)
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fstp st(2)
fstp st(0)
fld st(0)
fcomp dword [ecx + 0xc]
fnstsw ax
test ah, 0x41
jne 0x4eec65
fld dword [0x641de0]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4eebc8
fsqrt
fdivr dword [0x6419bc]
fstp dword [esp + 0x1c]
jmp 0x4eebd2
fstp st(0)
mov dword [esp + 0x1c], 0
test edx, edx
fld dword [esp + 0x1c]
fmul st(1)
mov dword [esp + 0x28], 0
fstp dword [esp + 0x50]
fstp st(0)
fld dword [esp + 0x54]
fmul dword [esp + 0x1c]
fstp dword [esp + 0x54]
fld dword [esp + 0x58]
fmul dword [esp + 0x1c]
fstp dword [esp + 0x58]
jle 0x4eec53
fld dword [0x6419bc]
fsub dword [ecx + 0xc]
mov ecx, dword [esp + 0x44]
add ecx, 4
fstp dword [esp + 0x3c]
jmp 0x4eec20
fld dword [esp + 0x58]
fmul dword [ecx + 4]
fld dword [esp + 0x50]
fmul dword [ecx - 4]
faddp st(1)
fld dword [esp + 0x54]
fmul dword [ecx]
faddp st(1)
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 5
jnp 0x4eec69
mov eax, dword [esp + 0x28]
inc eax
add ecx, 0x10
cmp eax, edx
mov dword [esp + 0x28], eax
jl 0x4eec20
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x18]
mov dword [eax], 0x3f800000
mov byte [ecx], 1
jmp 0x4eec69
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x4c]
test eax, eax
js 0x4eec8c
mov ecx, dword [0x9617f0]
mov edx, dword [ecx]
and eax, 0x7fffffff
push 0x12
shl eax, 4
push eax
mov eax, dword [esp + 0x4c]
push eax
call dword [edx + 0x14]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
inc ecx
add eax, 0x10
cmp ecx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
jl 0x4ee910
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret