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

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, dword [esp + 0x6c]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 8]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
mov edx, dword [eax]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x64]
mov ebp, dword [ecx + 0x28]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x30]
mov ebx, eax
shr eax, 9
and eax, 1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x78]
push edi
mov edi, dword [esi + 0xc]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0x44]
and ebx, 1
test eax, eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x3c], 1
je 0x4706c5
cmp dword [eax], 0
jne 0x4706bb
cmp dword [eax + 4], 0
je 0x4706c5
mov dword [esp + 0x40], 1
jmp 0x4706cd
mov dword [esp + 0x40], 0
movzx eax, byte [ebp + 0x2e]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x74]
mov dword [eax + 4], 0
mov word [eax + 8], 1
mov dword [eax], 0
mov eax, dword [ecx + 0x34]
test eax, eax
mov dword [esp + 0x54], 0
jne 0x470720
test edx, edx
jg 0x470720
cmp edx, 0xfffffffa
je 0x470720
mov eax, dword [ecx + 0x24]
test eax, eax
jne 0x470720
mov dword [esp + 0x38], 0
mov eax, 1
jmp 0x470729
mov eax, 1
mov dword [esp + 0x38], eax
cmp edx, 0xffffffff
jne 0x470732
test edi, edi
jmp 0x47074d
cmp edx, 0xfffffffd
jne 0x47073c
cmp edi, 4
jmp 0x47074d
cmp edx, 0xfffffffe
jne 0x47074a
cmp edi, 3
je 0x470757
cmp edi, eax
jmp 0x47074d
cmp edx, 0xfffffffc
mov dword [esp + 0x24], 0
jne 0x47075b
mov dword [esp + 0x24], eax
cmp word [ebp + 0x18], ax
je 0x470777
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x47076d
test ebx, ebx
jne 0x470777
mov dword [esp + 0x20], 0
jmp 0x47077b
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x14]
fld dword [edi]
fld qword [0x66a720]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x470797
mov edx, 1
jmp 0x470799
xor edx, edx
fld dword [edi + 4]
add edi, 4
fld qword [0x66a720]
mov dword [esp + 0x44], edi
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4707b9
mov ecx, 1
jmp 0x4707bb
xor ecx, ecx
test edx, edx
mov eax, dword [esp + 0x14]
je 0x4707c7
fld dword [eax]
jmp 0x4707ca
fld dword [eax + 8]
test ecx, ecx
fdivr qword [0x66a710]
fstp qword [esp + 0x48]
fld qword [esp + 0x48]
fstp dword [esp + 0x30]
je 0x4707e4
fld dword [edi]
jmp 0x4707e7
fld dword [eax + 0xc]
test edx, edx
fdivr qword [0x66a710]
fstp qword [esp + 0x48]
fld qword [esp + 0x48]
fstp dword [esp + 0x34]
je 0x47083f
fld dword [esp + 0x30]
fcomp dword [0x66cb3c]
fnstsw ax
test ah, 5
jp 0x47081a
fld dword [esp + 0x30]
fchs
fstp dword [esp + 0x30]
jmp 0x470822
mov edx, dword [esp + 0x30]
mov dword [esp + 0x30], edx
fld dword [esp + 0x30]
fcomp qword [0x671628]
fnstsw ax
test ah, 0x41
jne 0x47083f
xor edx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x3c], edx
jmp 0x470841
xor edx, edx
cmp ecx, edx
je 0x470883
fld dword [esp + 0x34]
fcomp dword [0x66cb3c]
fnstsw ax
test ah, 5
jp 0x470862
fld dword [esp + 0x34]
fchs
fstp dword [esp + 0x34]
jmp 0x47086a
mov eax, dword [esp + 0x34]
mov dword [esp + 0x34], eax
fld dword [esp + 0x34]
fcomp qword [0x671628]
fnstsw ax
test ah, 0x41
jne 0x470883
mov dword [esp + 0x20], edx
mov dword [esp + 0x3c], edx
cmp dword [esp + 0x18], edx
je 0x470898
cmp ebx, edx
jne 0x470898
cmp dword [esp + 0x24], edx
mov ebx, 1
jne 0x47089c
movsx ebx, word [ebp + 0x18]
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x50]
push ecx
push edx
mov dword [esp + 0x3c], ebx
call fcn.004f6550
mov edi, eax
mov eax, dword [esp + 0x48]
add esp, 8
test eax, eax
mov dword [esp + 0x48], edi
je 0x4708ef
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x74]
push eax
push edi
push ecx
push ebx
push edx
call fcn.004e2040
add esp, 0x20
test eax, eax
jne 0x470a3f
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x470a7e
mov eax, dword [esp + 0x58]
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x470a3f
mov ecx, dword [esp + 0x44]
push ecx
call fcn.004f86c0
add esp, 4
test eax, eax
jne 0x470933
mov edx, dword [esp + 0x14]
add edx, 8
push edx
call fcn.004f86c0
add esp, 4
test eax, eax
jne 0x470933
xor edi, edi
jmp 0x470938
mov edi, 1
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 4]
mov esi, 1
shl esi, cl
test eax, eax
jne 0x470956
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x470a3f
mov eax, dword [ebx + 8]
test eax, eax
jne 0x470965
test edi, edi
jne 0x470a3f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47097c
mov eax, dword [esp + 0x48]
imul eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
jmp 0x470984
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x7c], edx
fld dword [esp + 0x7c]
mov dword [esp + 0x40], eax
fmul dword [esp + 0x7c]
sub esp, 8
fld dword [esp + 0x48]
fmul dword [esp + 0x48]
faddp st(1)
fstp qword [esp]
call fcn.004f5e10
fdivr qword [0x66a710]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0xc]
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x48], edx
fstp dword [esp + 0x60]
fld dword [esp + 0x84]
fmul dword [esp + 0x84]
fld dword [esp + 0x48]
fmul dword [esp + 0x48]
faddp st(1)
fstp qword [esp]
call fcn.004f5e10
fdivr qword [0x66a710]
mov edx, dword [esp + 0x3c]
add esp, 8
imul edx, dword [esp + 0x1c]
fstp dword [esp + 0x44]
fild dword [esp + 0x30]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fmul dword [esp + 0x58]
mov dword [esp + 0x7c], edx
fild dword [esp + 0x7c]
fstp dword [esp + 0x7c]
fdiv dword [esp + 0x7c]
fmul dword [esp + 0x44]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fcomp dword [ebx]
fnstsw ax
test ah, 0x41
jne 0x470a49
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x74]
lea ecx, [eax + 8]
push ecx
mov ecx, dword [esp + 0x6c]
lea ebx, [eax + 4]
push ebx
push edi
call fcn.00470500
movsx eax, word [ebp + 0x18]
mov ecx, dword [ebx]
imul eax, esi
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x54]
shl eax, 2
add esp, 0xc
add ecx, eax
mov dword [ebx], ecx
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
cmp ecx, 1
jne 0x470a8b
mov eax, ecx
jmp 0x470a96
xor eax, eax
cmp ecx, 8
setne al
add eax, 2
cmp dword [esp + 0x5c], 0xfffffffc
je 0x470aa6
lea edx, [eax + ebx*2]
lea ebp, [ebx + edx - 3]
jmp 0x470aa9
lea ebp, [eax + 0xc]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x470abf
cmp edi, 4
jne 0x470ab8
jmp 0x470b00
cmp edi, 3
jne 0x470abf
jmp 0x470b00
mov edx, dword [esi + 0x54]
test edx, edx
jne 0x470af1
test eax, eax
jne 0x470ad2
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x470af1
cmp ecx, 8
jne 0x470af1
cmp dword [esp + 0x10], ecx
jne 0x470af1
mov eax, dword [esi + 0x48]
test eax, eax
je 0x470af1
mov edi, dword [esp + 0x20]
neg edi
sbb edi, edi
add edi, 6
jmp 0x470b00
mov edx, dword [esp + 0x10]
xor eax, eax
cmp edx, 1
setne al
inc eax
mov edi, eax
mov ecx, dword [esp + 0x68]
mov al, byte [ecx + 0x1c]
test al, al
je 0x470b9c
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x74]
xor ebx, ebx
cmp eax, 1
mov eax, dword [esp + 0x28]
setle bl
push edx
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x34]
dec ebx
and ebx, 6
mov ecx, ebx
call fcn.004704c0
add esp, 8
mov esi, dword [esp + 0x74]
mov eax, dword [0x681f20]
test eax, eax
je 0x470c33
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x470c33
cmp ebx, 1
je 0x470b66
cmp ebx, 4
jne 0x470c33
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov edi, dword [esi]
push esi
push edx
mov edx, dword [esp + 0x80]
mov ecx, 0x1a
call fcn.004704c0
mov eax, dword [esi]
add esp, 8
cmp eax, 0x470600
je 0x470c37
mov dword [esi], edi
xor edi, edi
jmp 0x470c37
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
mov eax, dword [esp + 0x44]
mov ecx, ebp
call fcn.00470230
mov ebx, eax
add esp, 0xc
cmp ebx, 0x1b
je 0x470bdf
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
push ecx
push edx
mov edx, dword [esp + 0x80]
mov ecx, ebx
call fcn.004704c0
add esp, 8
mov eax, dword [esp + 0x74]
cmp dword [eax], 0
jne 0x470b3b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov edx, edi
mov esi, ebp
call fcn.004703e0
mov ebx, eax
add esp, 0xc
cmp ebx, 0x1b
je 0x470b3b
mov esi, dword [esp + 0x74]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x2c]
push esi
push ecx
mov ecx, ebx
call fcn.004704c0
add esp, 8
jmp 0x470b3f
mov edi, dword [esp + 0x54]
cmp dword [esp + 0x78], 1
jne 0x470c4d
cmp dword [esi], 0
jne 0x470c4d
push 0
call fcn.0044b1f0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret