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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x484]
test eax, eax
push edi
mov dword [esp + 0x54], 0
jle 0x4adbe5
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
add esi, 0x888
sub ecx, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x78], ecx
lea esp, [esp]
mov edx, dword [esi - 0x400]
mov ecx, dword [ebp + 0x28]
lea eax, [ecx + edx*4]
cmp dword [eax], 0
mov dword [esp + 0x50], eax
jne 0x4ad7e1
mov eax, dword [esi]
cmp dword [ecx + eax*4], 0
je 0x4adbb9
mov eax, dword [esi - 0x400]
mov edx, dword [ebp + 0x18]
mov ecx, dword [esi]
shl eax, 2
mov ebx, dword [eax + edx]
shl ecx, 2
mov edi, dword [ecx + edx]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x60], ebx
lea ebx, [ebx + edx*4]
lea edx, [edi + edx*4]
mov dword [esp + 0x64], edx
mov edx, dword [ebp + 0x24]
mov eax, dword [eax + edx]
mov ecx, dword [ecx + edx]
mov edx, dword [ebp + 8]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4 + 0xfc]
fld qword [eax*8 + 0x54ac40]
mov eax, dword [ecx + edx*4 + 0x138]
fstp dword [esp + 0x40]
mov dword [esp + 0x30], ebx
fld qword [eax*8 + 0x54ac40]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
fstp dword [esp + 0x1c]
mov ebx, dword [eax + 0x1f8]
test ebx, ebx
mov dword [esp + 0x44], edi
je 0x4ad869
mov ebx, dword [eax + 0x200]
mov dword [esp + 0x10], ebx
jmp 0x4ad871
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
mov eax, dword [eax]
imul eax, eax, 0xf
add eax, edx
mov eax, dword [ecx + eax*4 + 0x84]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x50]
mov dword [eax], 1
mov eax, dword [esi]
mov esi, dword [ebp + 0x28]
mov dword [esi + eax*4], 1
cmp dword [esp + 0x3c], 0x3e8
jle 0x4ad8b5
mov ecx, dword [ecx + edx*4 + 0x138]
fld qword [ecx*8 + 0x54ac88]
fstp dword [esp + 0x1c]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x2c], eax
jle 0x4adbb5
xor esi, esi
mov dword [esp + 0x34], esi
jmp 0x4ad8e0
test ebx, ebx
mov dword [esp + 0x14], 0
jle 0x4adab1
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x30]
mov edx, eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x58]
sub ecx, eax
mov eax, dword [esp + 0x60]
sub eax, edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x28], esi
sub edx, edi
add esi, edi
sub ebx, edi
sub eax, edi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x48], eax
jmp 0x4ad940
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
lea esp, [esp]
mov eax, dword [esp + 0x2c]
cmp eax, dword [ebp + 0x2c]
jge 0x4ada75
cmp eax, dword [esp + 0x4c]
jl 0x4ad97a
mov eax, dword [esp + 0x20]
fld dword [eax + esi]
fabs
fld dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4ad97a
fld dword [esi]
fabs
fld dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 0x41
je 0x4ad9a9
mov eax, dword [esp + 0x20]
fld dword [eax + esi]
fabs
fld dword [esp + 0x40]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4ada57
fld dword [esi]
fabs
fld dword [esp + 0x40]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4ada57
lea eax, [edx + esi]
mov edi, dword [eax + ecx]
mov eax, dword [eax]
xor ecx, ecx
cmp eax, edi
setg cl
mov dword [esp + 0x74], eax
sub eax, edi
cdq
xor eax, edx
sub eax, edx
dec ecx
mov edx, eax
mov eax, 0x1f
sub eax, edx
mov edx, ecx
not edx
and edx, dword [esp + 0x74]
and ecx, edi
or edx, ecx
xor ecx, ecx
test eax, eax
setl cl
sub esp, 8
dec ecx
and ecx, eax
fld dword [ecx*4 + 0x54b0d0]
mov eax, dword [esp + 0x20]
fadd dword [0x4ed6ec]
fmul dword [edx*4 + 0x54acd0]
mov edx, dword [esp + 0x80]
mov ecx, dword [edx + eax]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
fmul dword [ecx + edx]
fstp dword [ebx + esi]
mov dword [eax + esi], 0
fld dword [ebx + esi]
fadd dword [0x4f5564]
fstp qword [esp]
call fcn.004ba230
fld qword [0x4ee850]
mov edi, dword [esp + 0x4c]
fucompp
add esp, 8
fnstsw ax
test ah, 0x44
jp 0x4ada87
fld dword [ebx + esi]
fld st(0)
fmul st(1)
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fstp st(0)
jmp 0x4ada87
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + esi]
add ecx, esi
lea edx, [ebx + esi]
push eax
call fcn.004aced0
add esp, 8
jmp 0x4ada87
mov ecx, dword [esp + 0x24]
mov dword [ebx + esi], 0
mov dword [ecx + esi], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add eax, 4
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
add esi, 4
inc ecx
dec eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x48], eax
jne 0x4ad934
mov ebx, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x1f8]
test ecx, ecx
je 0x4adb89
test ebx, ebx
mov dword [esp + 0x48], 0
jle 0x4adb89
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x2c], ecx
lea ecx, [ecx]
mov edx, dword [ebp + 0x10]
fld dword [esp + 0x14]
mov eax, dword [edx + 4]
fcomp qword [eax + 0x208]
fnstsw ax
test ah, 1
jne 0x4adb89
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
mov esi, dword [eax + edx]
cmp esi, dword [ebp + 0x2c]
jge 0x4adb6d
cmp esi, dword [esp + 0x4c]
jl 0x4adb6d
mov ecx, dword [esp + 0x30]
fld dword [ecx + esi*4]
sub esp, 8
fadd dword [0x4f5564]
fstp qword [esp]
call fcn.004ba230
fld qword [0x4ee850]
mov ebx, dword [esp + 0x18]
fucompp
add esp, 8
fnstsw ax
test ah, 0x44
jp 0x4adb6d
mov eax, dword [esp + 0x30]
fld dword [eax + esi*4]
fstp dword [esp + 0x7c]
fld dword [esp + 0x14]
mov edx, dword [esp + 0x7c]
fsub dword [0x4ed6ec]
and edx, 0xbf800000
or edx, 0x3f800000
mov dword [eax + esi*4], edx
fstp dword [esp + 0x14]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
inc eax
add edx, 4
cmp eax, ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], edx
jl 0x4adae0
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x50]
lea eax, [ebx*4]
add esi, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
add ecx, ebx
cmp ecx, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], eax
jl 0x4ad8e0
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x484]
inc eax
add esi, 4
add edi, 4
cmp eax, edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x18], edi
jl 0x4ad7c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret