Function at 0x477a30
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 0x477a52
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x30
ret 4
mov eax, dword [0x6833d0]
mov edx, dword [esi + 0xd8]
mov ecx, dword [eax + 0x424]
mov eax, dword [edx]
push eax
call fcn.00603f70
test eax, eax
mov dword [esp + 0x18], eax
je 0x4781a8
mov eax, dword [esi + 0x350]
xor ebx, ebx
cmp eax, 1
jne 0x477a9e
mov ecx, dword [0x6833d0]
mov edx, dword [esi + 0x34c]
push edx
mov ecx, dword [ecx + 0x424]
call fcn.00603f70
mov ebx, eax
mov eax, dword [esi + 0x350]
mov edi, 2
xor ebp, ebp
cmp eax, edi
mov dword [esp + 0x14], ebp
jne 0x477ad0
mov eax, dword [0x6833d0]
mov edx, dword [esi + 0x34c]
push edx
mov ecx, dword [eax + 0x424]
call fcn.00604cb0
mov dword [esp + 0x14], eax
mov ebp, eax
test ebx, ebx
jne 0x477add
cmp dword [esi + 0x350], 1
je 0x477af1
test ebp, ebp
jne 0x477b8d
cmp dword [esi + 0x350], edi
jne 0x477b8d
mov eax, dword [esi + 0x480]
test eax, eax
jle 0x477b54
mov edx, dword [esi + 0xf0]
test edx, edx
je 0x477b29
mov edi, dword [edx + 4]
mov ecx, dword [edx + 0xc]
xor eax, eax
test edi, edi
jle 0x477b29
add ecx, 0x2c
mov dword [ecx], 0
mov edx, dword [esi + 0xf0]
inc eax
add ecx, 0x48
cmp eax, dword [edx + 4]
jl 0x477b14
mov ecx, esi
call fcn.00478340
mov eax, dword [esi + 0xf8]
mov ecx, esi
push eax
call fcn.00472fc0
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.00478340
mov edx, dword [esp + 0x14]
push 1
push 0
push edx
push ebx
push edi
push 0
mov ecx, esi
call fcn.00474560
jmp 0x477b30
test ebx, ebx
mov dword [esp + 0x10], 0x7f7fffff
je 0x477bc8
cmp dword [esi + 0x350], 1
jne 0x477bc8
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.00539330
fld dword [esi + 0x118]
fmul dword [0x634598]
fsubp st(1)
jmp 0x477c67
test ebp, ebp
je 0x477c6b
cmp dword [esi + 0x350], edi
jne 0x477c6b
mov edx, dword [0x6833d0]
push 0
push 0
push 0xffffffffffffffff
mov edi, dword [edx + 0x424]
lea eax, [esi + 4]
push 0xffffffffffffffff
push eax
mov ecx, ebp
call fcn.004727f0
push eax
mov ecx, edi
call fcn.00603f70
mov edx, dword [esi]
mov edi, eax
test edi, edi
mov ecx, esi
je 0x477c27
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 0x477c38
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.005e8590
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 0x477c83
fld dword [esp + 0x10]
fsub dword [0x63a7d4]
fstp dword [esp + 0x10]
push 0
lea ecx, [esi + 0x174]
call fcn.00470ba0
mov edi, eax
fld dword [edi + 0x1c]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
jne 0x477e25
mov ecx, dword [0x63a758]
mov eax, dword [esi + 0xfc]
test eax, ecx
ja 0x477e25
fld dword [edi + 0x1c]
push 0
push ecx
fstp dword [esp]
push ebx
mov ecx, edi
call fcn.00470490
mov edx, dword [esi]
mov ecx, esi
mov edi, eax
call dword [edx + 0x78]
cmp eax, 1
jne 0x477cdb
cmp edi, eax
je 0x477d02
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x78]
test eax, eax
jne 0x477df5
mov ecx, esi
call fcn.0048ef10
test eax, eax
jne 0x477df5
cmp edi, 1
jne 0x477df5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
mov ecx, dword [0x63a758]
mov eax, dword [esi + 0xfc]
or eax, ecx
mov dword [esi + 0xfc], eax
mov edx, dword [0x63a758]
mov eax, dword [esi + 0xfc]
test eax, edx
ja 0x477f61
cmp dword [esi + 0x350], 1
jne 0x477f61
test ebx, ebx
je 0x477f61
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.005e8590
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 [0x6345ac]
fnstsw ax
test ah, 0x41
jne 0x477f61
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 0x477f28
cmp al, 0x80
jne 0x477dd0
mov edx, dword [ebx + 8]
mov al, byte [edx + 0x6d]
test al, al
jne 0x477f28
mov eax, dword [esi + 0x35c]
mov ecx, dword [edi]
push 1
push 0
push 0
push eax
push ecx
push 0
mov ecx, esi
call fcn.00474560
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 0x477d20
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x80]
mov eax, dword [0x63a758]
mov ecx, dword [esi + 0xfc]
or ecx, eax
mov dword [esi + 0xfc], ecx
jmp 0x477d20
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x78]
test eax, eax
jne 0x477d20
fld dword [edi + 0x1c]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x477d20
cmp dword [esi + 0x368], 1
je 0x477e86
fld dword [esp + 0x10]
fcomp dword [0x6345a8]
fnstsw ax
test ah, 0x41
je 0x477e86
mov eax, dword [0x63a758]
mov ecx, dword [esi + 0xfc]
test ecx, eax
ja 0x477e77
or ecx, eax
mov dword [esi + 0xfc], ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
jmp 0x477d20
test ebx, ebx
je 0x477ec3
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.004749a0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 4
test ebp, ebp
je 0x4781a8
mov eax, dword [ebp + 0xd8]
mov edx, dword [0x6833d0]
mov eax, dword [eax]
mov ecx, dword [edx + 0x424]
push eax
call fcn.00603f70
mov edi, eax
test edi, edi
je 0x4781a8
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.004749a0
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.004749a0
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 0x477f7a
mov dword [ebp], 1
jmp 0x477f9c
mov ecx, esi
call fcn.0048ef10
test eax, eax
jne 0x477f9c
mov eax, dword [0x63a758]
mov ecx, dword [esi + 0xfc]
test ecx, eax
ja 0x477f9c
or ecx, eax
mov dword [esi + 0xfc], ecx
mov ecx, dword [esi + 0xfc]
mov eax, dword [0x63a758]
test eax, ecx
jbe 0x47804c
mov eax, dword [0x63a75c]
test eax, ecx
jbe 0x47804c
not eax
and ecx, eax
lea edi, [esi + 0x340]
mov dword [esi + 0xfc], ecx
mov ecx, dword [0x6833d0]
mov eax, dword [esi + 0x350]
push 0
mov edx, dword [ecx + 0x424]
cmp eax, 1
mov eax, dword [esi + 0xa8]
mov ecx, dword [edx + 0x1e4]
mov edx, dword [eax + 0x10]
push edx
push edi
jne 0x47800d
mov eax, dword [esi + 0xd0]
mov edx, dword [esi + 0xd8]
push ebx
push eax
push edx
push esi
call fcn.00443bd0
jmp 0x478018
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.00444230
mov eax, dword [esi + 0x348]
test eax, eax
je 0x4781b4
cmp dword [edi], 0
jle 0x4781b4
push edi
mov ecx, esi
call fcn.004764e0
mov ecx, esi
call fcn.00478390
mov ecx, esi
call fcn.00478410
mov dword [ebp], 0
mov eax, dword [0x63a758]
mov ecx, dword [esi + 0xfc]
test ecx, eax
jbe 0x4781a8
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x4781a8
mov ebp, dword [eax + 0xc]
test ebp, ebp
je 0x4781a8
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], 0
test ecx, ecx
jle 0x4781a8
mov ecx, dword [0x6833d0]
mov edx, dword [ebp]
push edx
mov ecx, dword [ecx + 0x424]
call fcn.00603f70
mov edi, eax
test edi, edi
je 0x47818b
mov ecx, edi
call fcn.00539bc0
test eax, eax
je 0x47818b
mov eax, dword [ebp]
mov ecx, esi
push eax
call fcn.00472af0
test eax, eax
je 0x47818b
mov ecx, edi
call fcn.00539bc0
mov edx, dword [eax]
push ebx
mov ecx, eax
call dword [edx + 0x4c]
test eax, eax
je 0x47818b
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.005e8590
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 [0x6345a8]
fnstsw ax
test ah, 0x41
jne 0x47814e
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x128]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x47818b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x244]
cmp eax, 9
je 0x47818b
cmp dword [esi + 0x350], 1
jne 0x47818b
test ebx, ebx
je 0x47818b
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 0x47808b
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.00478340
push 1
push 0
push 0
push ebx
push edi
push 0
mov ecx, esi
call fcn.00474560
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 4