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

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xf4]
test eax, eax
jne 0x471542
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x30
ret 4
mov eax, dword [0x6633d4]
mov edx, dword [esi + 0xd8]
mov ecx, dword [eax + 0x420]
mov eax, dword [edx]
push eax
call fcn.005ebae0
test eax, eax
mov dword [esp + 0x18], eax
je 0x471c94
mov eax, dword [esi + 0x350]
xor ebx, ebx
cmp eax, 1
jne 0x47158e
mov ecx, dword [0x6633d4]
mov edx, dword [esi + 0x34c]
push edx
mov ecx, dword [ecx + 0x420]
call fcn.005ebae0
mov ebx, eax
mov eax, dword [esi + 0x350]
mov edi, 2
xor ebp, ebp
cmp eax, edi
mov dword [esp + 0x14], ebp
jne 0x4715c0
mov eax, dword [0x6633d4]
mov edx, dword [esi + 0x34c]
push edx
mov ecx, dword [eax + 0x420]
call fcn.005ec820
mov dword [esp + 0x14], eax
mov ebp, eax
test ebx, ebx
jne 0x4715cd
cmp dword [esi + 0x350], 1
je 0x4715e1
test ebp, ebp
jne 0x47167b
cmp dword [esi + 0x350], edi
jne 0x47167b
mov eax, dword [esi + 0x480]
test eax, eax
jle 0x471644
mov edx, dword [esi + 0xf0]
test edx, edx
je 0x471619
mov edi, dword [edx + 4]
mov ecx, dword [edx + 0xc]
xor eax, eax
test edi, edi
jle 0x471619
add ecx, 0x2c
mov dword [ecx], 0
mov edx, dword [esi + 0xf0]
inc eax
add ecx, 0x48
cmp eax, dword [edx + 4]
jl 0x471604
mov ecx, esi
call fcn.00471e30
mov eax, dword [esi + 0xf8]
mov ecx, esi
push eax
call fcn.0046cb50
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword [ecx], 0
xor eax, eax
pop ebx
add esp, 0x30
ret 4
mov ecx, dword [esi + 0x360]
lea edx, [esi + 0x354]
mov dword [esp + 0x14], ecx
mov ecx, esi
mov edi, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x20], eax
mov ebx, dword [edx + 8]
call fcn.00471e30
mov edx, dword [esp + 0x14]
push 0
push edx
push ebx
push edi
push 0
mov ecx, esi
call fcn.0046e0c0
jmp 0x471620
test ebx, ebx
mov dword [esp + 0x10], 0x7f7fffff
je 0x4716b6
cmp dword [esi + 0x350], 1
jne 0x4716b6
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.0052bce0
fld dword [esi + 0x118]
fmul dword [0x61b588]
fsubp st(1)
jmp 0x471755
test ebp, ebp
je 0x471759
cmp dword [esi + 0x350], edi
jne 0x471759
mov edx, dword [0x6633d4]
push 0
push 0
push 0xffffffffffffffff
mov edi, dword [edx + 0x420]
lea eax, [esi + 4]
push 0xffffffffffffffff
push eax
mov ecx, ebp
call fcn.0046c380
push eax
mov ecx, edi
call fcn.005ebae0
mov edx, dword [esi]
mov edi, eax
test edi, edi
mov ecx, esi
je 0x471715
call dword [edx + 4]
mov edx, dword [edi]
push eax
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
lea eax, [esp + 0x3c]
push eax
call dword [edx + 0x23c]
jmp 0x471726
call dword [edx + 4]
mov edx, dword [ebp]
push eax
lea eax, [esp + 0x38]
mov ecx, ebp
push eax
call dword [edx + 4]
mov ecx, eax
call fcn.005d0f40
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
fld dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov dword [esp + 0x20], edx
fmul dword [esp + 0x1c]
mov dword [esp + 0x24], eax
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
faddp st(1)
fsqrt
fstp dword [esp + 0x10]
mov eax, dword [esi + 0x368]
test eax, eax
jne 0x471771
fld dword [esp + 0x10]
fsub dword [0x61f9f0]
fstp dword [esp + 0x10]
push 0
lea ecx, [esi + 0x174]
call fcn.0046a6e0
mov edi, eax
fld dword [edi + 0x1c]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
jne 0x471911
mov ecx, dword [0x61f974]
mov eax, dword [esi + 0xfc]
test eax, ecx
ja 0x471911
fld dword [edi + 0x1c]
push 0
push ecx
fstp dword [esp]
push ebx
mov ecx, edi
call fcn.00469fd0
mov edx, dword [esi]
mov ecx, esi
mov edi, eax
call dword [edx + 0x78]
cmp eax, 1
jne 0x4717c9
cmp edi, eax
je 0x4717f0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x78]
test eax, eax
jne 0x4718e1
mov ecx, esi
call fcn.00488a20
test eax, eax
jne 0x4718e1
cmp edi, 1
jne 0x4718e1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
mov ecx, dword [0x61f974]
mov eax, dword [esi + 0xfc]
or eax, ecx
mov dword [esi + 0xfc], eax
mov edx, dword [0x61f974]
mov eax, dword [esi + 0xfc]
test eax, edx
ja 0x471a4d
cmp dword [esi + 0x350], 1
jne 0x471a4d
test ebx, ebx
je 0x471a4d
mov edx, dword [ebx]
lea edi, [esi + 0x354]
lea eax, [esp + 0x34]
push edi
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call dword [edx + 0x23c]
mov ecx, eax
call fcn.005d0f40
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
faddp st(1)
fsqrt
fcomp dword [0x61b59c]
fnstsw ax
test ah, 0x41
jne 0x471a4d
mov eax, dword [esp + 0x18]
mov edx, dword [ebx]
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, ebx
call dword [edx + 0xfc]
cmp al, 0xf
je 0x471a14
cmp al, 0x80
jne 0x4718be
mov edx, dword [ebx + 8]
mov al, byte [edx + 0x6d]
test al, al
jne 0x471a14
mov eax, dword [esi + 0x35c]
mov ecx, dword [edi]
push 0
push 0
push eax
push ecx
push 0
mov ecx, esi
call fcn.0046e0c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 4
mov eax, dword [esi + 0x368]
test eax, eax
jne 0x47180e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x80]
mov eax, dword [0x61f974]
mov ecx, dword [esi + 0xfc]
or ecx, eax
mov dword [esi + 0xfc], ecx
jmp 0x47180e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x78]
test eax, eax
jne 0x47180e
fld dword [edi + 0x1c]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x47180e
cmp dword [esi + 0x368], 1
je 0x471972
fld dword [esp + 0x10]
fcomp dword [0x61b598]
fnstsw ax
test ah, 0x41
je 0x471972
mov eax, dword [0x61f974]
mov ecx, dword [esi + 0xfc]
test ecx, eax
ja 0x471963
or ecx, eax
mov dword [esi + 0xfc], ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
jmp 0x47180e
test ebx, ebx
je 0x4719af
mov edx, dword [ebx]
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call dword [edx + 0x23c]
mov ecx, dword [eax + 8]
mov edx, dword [ebx]
lea eax, [esp + 0x28]
push ecx
push eax
mov ecx, ebx
call dword [edx + 0x23c]
mov ecx, dword [eax]
push ecx
push ebx
mov ecx, esi
call fcn.0046e4f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 4
test ebp, ebp
je 0x471c94
mov eax, dword [ebp + 0xd8]
mov edx, dword [0x6633d4]
mov eax, dword [eax]
mov ecx, dword [edx + 0x420]
push eax
call fcn.005ebae0
mov edi, eax
test edi, edi
je 0x471c94
mov edx, dword [edi]
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call dword [edx + 0x23c]
mov ecx, dword [eax + 8]
mov edx, dword [edi]
lea eax, [esp + 0x28]
push ecx
push eax
mov ecx, edi
call dword [edx + 0x23c]
mov ecx, dword [eax]
push ecx
push edi
mov ecx, esi
call fcn.0046e4f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 4
mov edx, dword [ebx]
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call dword [edx + 0x23c]
mov ecx, dword [eax + 8]
mov edx, dword [ebx]
lea eax, [esp + 0x28]
push ecx
push eax
mov ecx, ebx
call dword [edx + 0x23c]
mov ecx, dword [eax]
push ecx
push ebx
mov ecx, esi
call fcn.0046e4f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 4
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x78]
mov ebp, dword [esp + 0x44]
cmp eax, 1
jne 0x471a66
mov dword [ebp], 1
jmp 0x471a88
mov ecx, esi
call fcn.00488a20
test eax, eax
jne 0x471a88
mov eax, dword [0x61f974]
mov ecx, dword [esi + 0xfc]
test ecx, eax
ja 0x471a88
or ecx, eax
mov dword [esi + 0xfc], ecx
mov ecx, dword [esi + 0xfc]
mov eax, dword [0x61f974]
test eax, ecx
jbe 0x471b38
mov eax, dword [0x61f978]
test eax, ecx
jbe 0x471b38
not eax
and ecx, eax
lea edi, [esi + 0x340]
mov dword [esi + 0xfc], ecx
mov ecx, dword [0x6633d4]
mov eax, dword [esi + 0x350]
push 0
mov edx, dword [ecx + 0x420]
cmp eax, 1
mov eax, dword [esi + 0xa8]
mov ecx, dword [edx + 0x1e4]
mov edx, dword [eax + 0x10]
push edx
push edi
jne 0x471af9
mov eax, dword [esi + 0xd0]
mov edx, dword [esi + 0xd8]
push ebx
push eax
push edx
push esi
call fcn.0043fbb0
jmp 0x471b04
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.004401e0
mov eax, dword [esi + 0x348]
test eax, eax
je 0x471ca0
cmp dword [edi], 0
jle 0x471ca0
push edi
mov ecx, esi
call fcn.00470000
mov ecx, esi
call fcn.00471e80
mov ecx, esi
call fcn.00471f00
mov dword [ebp], 0
mov eax, dword [0x61f974]
mov ecx, dword [esi + 0xfc]
test ecx, eax
jbe 0x471c94
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x471c94
mov ebp, dword [eax + 0xc]
test ebp, ebp
je 0x471c94
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], 0
test ecx, ecx
jle 0x471c94
mov ecx, dword [0x6633d4]
mov edx, dword [ebp]
push edx
mov ecx, dword [ecx + 0x420]
call fcn.005ebae0
mov edi, eax
test edi, edi
je 0x471c77
mov ecx, edi
call fcn.0052c570
test eax, eax
je 0x471c77
mov eax, dword [ebp]
mov ecx, esi
push eax
call fcn.0046c680
test eax, eax
je 0x471c77
mov ecx, edi
call fcn.0052c570
mov edx, dword [eax]
push ebx
mov ecx, eax
call dword [edx + 0x4c]
test eax, eax
je 0x471c77
mov eax, dword [edi]
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call dword [eax + 0x23c]
lea edx, [esp + 0x28]
push eax
push edx
lea ecx, [ebp + 0x1c]
call fcn.005d0f40
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
faddp st(1)
fsqrt
fst dword [esp + 0x44]
fcomp dword [0x61b598]
fnstsw ax
test ah, 0x41
jne 0x471c3a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x128]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x471c77
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x244]
cmp eax, 9
je 0x471c77
cmp dword [esi + 0x350], 1
jne 0x471c77
test ebx, ebx
je 0x471c77
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x258]
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x3c]
mov eax, dword [edi]
push ecx
mov ecx, dword [ebx + 0x38]
push edx
push ecx
push ebx
mov ecx, edi
call dword [eax + 0xa0]
mov edx, dword [esi + 0xf0]
mov eax, dword [esp + 0x14]
inc eax
add ebp, 0x48
mov ecx, dword [edx + 4]
mov dword [esp + 0x14], eax
cmp eax, ecx
jl 0x471b77
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 4
lea ecx, [esi + 0x354]
mov edi, dword [esi + 0x354]
mov edx, dword [ecx + 4]
mov dword [esp + 0x38], edx
mov ebx, dword [ecx + 8]
mov ecx, esi
call fcn.00471e30
push 0
push 0
push ebx
push edi
push 0
mov ecx, esi
call fcn.0046e0c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 4