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

Disassembly:
sub esp, 0x164
push ebx
push esi
push edi
mov edi, dword [esp + 0x174]
mov esi, ecx
mov ecx, dword [edi]
call fcn.004921b0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x98], ebx
je 0x4757c0
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax + 0xd4]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x834]
push ebp
push eax
mov dword [esp + 0x3c], eax
call dword [0x5f62b8]
mov ebp, dword [esp + 0x17c]
movsx ecx, word [ebp + 0x24]
fld dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x50], ecx
mov ecx, dword [edi + 0x3c]
mov dword [esp + 0xbc], ecx
fild dword [esp + 0x50]
mov ecx, dword [edi + 0x38]
mov dword [esp + 0xcc], ecx
movzx ecx, word [ebp + 0x26]
fmul dword [0x5fa904]
mov edx, eax
imul ecx, ecx, 0x1c
fstp dword [esp + 0x20]
fst dword [esp + 0xb0]
fstp dword [esp + 0xc8]
mov dword [esp + 0xac], edx
mov edx, dword [edi + 0x40]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc0], edx
movzx edx, byte [edi + 0x54]
mov dword [esp + 0xc4], eax
movzx eax, byte [edi + 0x55]
mov dword [esp + 0xd0], edx
mov edx, dword [edi + 0x44]
mov dword [esp + 0xd4], eax
lea eax, [ecx + edx]
mov dword [esp + 0xb8], 0x48
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xd8], ecx
mov edx, dword [eax + 0x18]
mov dword [esp + 0xdc], edx
mov eax, dword [eax + 0x10]
mov dword [esp + 0xe0], eax
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx + 0x210]
xor edx, edx
cmp eax, edx
mov byte [esp + 0x50], 0
jne 0x475161
call fcn.004a0f20
xor edx, edx
cmp eax, 9
jl 0x47516b
mov byte [esp + 0x50], 1
fld dword [0x644b04]
mov byte [esp + 0x1f], 1
fld dword [edi + 0x38]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x47518e
mov dword [esp + 0xd4], edx
mov byte [esp + 0x1f], 0
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
movzx ecx, word [ebp + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x74], eax
mov al, byte [esp + 0x1f]
test al, al
mov dword [esp + 0x28], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edx
je 0x475340
fld dword [esp + 0x54]
fmul dword [0x5f96e0]
fst dword [esp + 0x14]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
fld dword [esp + 0x18]
fistp dword [esp + 0x14]
fld dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
fmul dword [0x5f96e0]
mov eax, dword [esp + 0x24]
and ecx, 0xffff
shl eax, 0x10
fstp dword [esp + 0x18]
or ecx, eax
mov dword [esp + 0x7c], ecx
fld dword [esp + 0x18]
fistp dword [esp + 0x14]
fld dword [edi + 0x3c]
fmul dword [0x5f96e0]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x80], ecx
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x14]
fld dword [edi + 0x40]
mov eax, dword [esp + 0x14]
fmul dword [0x5f96e0]
mov dword [esp + 0x84], eax
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
xor eax, eax
mov ah, byte [edi + 0x54]
mov dword [esp + 0x88], ecx
movzx ecx, word [ebp + 0x26]
imul ecx, ecx, 0x1c
mov al, byte [edi + 0x55]
mov dword [esp + 0x8c], eax
mov eax, dword [edi + 0x44]
fld dword [ecx + eax + 0x14]
fmul dword [0x5f96e0]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x14]
movzx eax, word [ebp + 0x26]
mov ecx, dword [esp + 0x14]
imul eax, eax, 0x1c
mov dword [esp + 0x90], ecx
mov ecx, dword [edi + 0x44]
fld dword [eax + ecx + 0x18]
fmul dword [0x5f96e0]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x14]
movzx ecx, word [ebp + 0x26]
mov eax, dword [esp + 0x14]
imul ecx, ecx, 0x1c
mov dword [esp + 0x94], eax
mov eax, dword [edi + 0x44]
fld dword [ecx + eax + 0x10]
fmul dword [0x5f96e0]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x14]
cmp dword [esi + 0xc], edx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x98], ecx
jne 0x475309
mov ecx, esi
call fcn.00472400
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 4]
push 1
lea ecx, [esp + 0x7c]
push ecx
push eax
push edx
call fcn.00572e50
mov ebx, eax
mov eax, dword [esp + 0x24]
add esp, 0x14
test eax, eax
mov dword [esp + 0x18], ebx
jne 0x47571b
mov ebx, dword [esp + 0x9c]
xor edx, edx
fld dword [esp + 0x20]
mov eax, dword [ebx + 0x2c]
fmul dword [edi + 0x40]
mov ecx, dword [eax + 0x22c]
mov dword [esp + 0x14], ecx
fcomp dword [0x5fa858]
fnstsw ax
test ah, 1
jne 0x47536d
mov dword [esp + 0x14], 7
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x38]
fld dword [esi + 0x38]
fmul dword [0x5f96e0]
mov dword [esp + 0xa8], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0xa0], ecx
fstp dword [esp + 0x20]
mov dword [esp + 0xa4], eax
fld dword [esp + 0x20]
fistp dword [esp + 0x54]
fld dword [esi + 0x34]
fmul dword [0x5f96e0]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fistp dword [esp + 0x20]
cmp dword [esi + 8], edx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x4c], ecx
jne 0x4753d2
mov ecx, esi
call fcn.004723a0
mov eax, dword [esi + 8]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esi + 4]
push 1
lea ecx, [esp + 0x44]
push ecx
push eax
push edx
call fcn.00572e50
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
add esp, 0x14
test eax, eax
jne 0x475616
mov ecx, dword [esp + 0x14]
mov eax, 7
cmp ecx, eax
jne 0x47547f
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax + 0x22c]
mov eax, dword [esi + 8]
test eax, eax
mov dword [esp + 0x48], ecx
jne 0x475426
mov ecx, esi
call fcn.004723a0
mov ecx, dword [esi + 8]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x44]
push eax
push ecx
push edx
call fcn.00572e50
mov ecx, dword [esp + 0x38]
add esp, 0x14
cmp ecx, 1
jne 0x475475
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.00472460
mov ecx, dword [esi + 4]
push eax
push ecx
call fcn.00573100
mov eax, dword [0x680ee0]
xor ecx, ecx
add esp, 0xc
dec eax
mov dword [esp + 0x24], ecx
mov dword [0x680ee0], eax
mov dword [esp + 0x48], 7
jmp 0x4754c2
mov dword [esp + 0x48], eax
mov eax, dword [esi + 8]
test eax, eax
jne 0x475491
mov ecx, esi
call fcn.004723a0
mov eax, dword [esi + 8]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esi + 4]
push 1
lea ecx, [esp + 0x44]
push ecx
push eax
push edx
call fcn.00572e50
mov ecx, dword [esp + 0x38]
add esp, 0x14
cmp ecx, 1
jne 0x4754ba
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], eax
test ecx, ecx
jne 0x475616
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x2c]
mov dx, word [ebp + 0x14]
mov dword [esp + 0xec], ecx
mov ecx, dword [eax + 0xd4]
push ecx
lea ecx, [esp + 0xe8]
mov dword [esp + 0xe8], 0x5fa874
mov dword [esp + 0xec], esi
mov word [esp + 0xf4], dx
mov dword [esp + 0xf8], 0
mov byte [esp + 0xfc], 0
call fcn.004730d0
mov eax, dword [esp + 0xf4]
cmp dword [eax + 0x1c], 1
ja 0x475557
mov dword [esp + 0xe4], 0x5fa874
lea ecx, [esp + 0xe4]
call fcn.00472700
mov edx, dword [esp + 0x38]
push edx
call dword [0x5f62b4]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x164
ret 8
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ecx + 0xd4]
push edx
push eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, esi
call fcn.00474220
mov edx, dword [esp + 0xf4]
mov eax, dword [esi + 4]
lea ecx, [esp + 0xa0]
push ecx
push edx
push eax
call fcn.00571930
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4755be
lea ecx, [esp + 0xe4]
mov dword [esp + 0xe4], 0x5fa874
call fcn.00472700
mov ecx, dword [esp + 0x38]
push ecx
call dword [0x5f62b4]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x164
ret 8
mov edx, dword [0x680ed8]
mov eax, dword [esp + 0x20]
inc edx
mov dword [0x680ed8], edx
push ebx
lea edx, [esp + 0x40]
push edx
push eax
mov ecx, esi
call fcn.00472460
mov ecx, dword [esi + 4]
push eax
push ecx
call fcn.00572f70
add esp, 0x14
test eax, eax
lea ecx, [esp + 0xe4]
mov dword [esp + 0xe4], 0x5fa874
jne 0x47553a
mov dword [esp + 0x20], ebx
call fcn.00472700
mov ebx, dword [esp + 0x9c]
jmp 0x47561c
inc dword [0x680ed4]
mov eax, dword [esp + 0x50]
push eax
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x14c]
push ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 0xc0]
push edx
push eax
push ecx
call fcn.00573840
mov edx, dword [esp + 0x52]
mov eax, dword [esp + 0x50]
push 0xb
push edx
mov dl, byte [edi + 0x54]
xor ecx, ecx
test dl, dl
mov edx, dword [esi + 4]
setne cl
push eax
push ecx
push edx
call fcn.00572a90
mov edi, eax
add esp, 0x34
test edi, edi
je 0x4757b4
mov ebx, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0xd4]
call fcn.004b5360
cmp eax, 9
mov eax, dword [esp + 0x20]
setge cl
lea edx, [esp + 0x13c]
push ecx
mov ecx, dword [esi + 4]
push edi
push edx
push eax
push ecx
call fcn.00574660
mov al, byte [esp + 0x33]
add esp, 0x14
test al, al
je 0x4756ef
inc dword [edi + 0x10]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4756c6
mov ecx, esi
call fcn.00472400
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
push edi
lea edx, [esp + 0x78]
push edx
mov edx, dword [esi + 4]
push ecx
push eax
push edx
call fcn.00572f70
add esp, 0x14
test eax, eax
jne 0x4757b4
inc dword [0x680ee0]
mov dword [esp + 0x18], edi
xor eax, eax
jmp 0x475700
mov edx, dword [esp + eax + 0x110]
mov ecx, dword [edi + 8]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x2c
jl 0x475700
mov ebx, dword [esp + 0x18]
jmp 0x475721
inc dword [0x680edc]
test ebx, ebx
je 0x4757b4
mov al, byte [esp + 0x1f]
test al, al
je 0x475782
mov ecx, dword [ebx + 8]
lea edx, [esp + 0xe4]
xor eax, eax
sub ecx, edx
nop
lea edx, [ecx + eax*4]
mov edx, dword [esp + edx + 0xe4]
mov dword [esp + eax*4 + 0xe4], edx
inc eax
cmp eax, 0xb
jl 0x475740
mov eax, dword [esp + 0x50]
push eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x30]
push edx
mov edx, dword [esi + 4]
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0xbc]
push ecx
push edx
call fcn.005742e0
add esp, 0x18
mov eax, dword [esp + 0x28]
mov word [ebp], ax
mov cx, word [ebx + 2]
add cx, ax
xor eax, eax
mov word [ebp + 2], cx
mov ax, word [ebx + 4]
add ax, word [esp + 0x2c]
neg eax
mov word [ebp + 4], ax
mov dx, word [ebx + 4]
add dx, ax
mov word [ebp + 6], dx
mov dword [ebp + 0xc], ebx
mov eax, dword [esp + 0x38]
push eax
call dword [0x5f62b4]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x164
ret 8