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

Disassembly:
sub esp, 0x154
push esi
mov esi, ecx
mov edx, dword [esi + 0x61bb8]
test edx, edx
jne 0x40a8c1
mov eax, dword [esi + 0x61bbc]
test eax, eax
je 0x40adc5
mov eax, dword [0x8ab7bc]
test eax, eax
je 0x40adc5
mov al, byte [esi + 0x8d]
mov ecx, 0x51
cmp al, cl
je 0x40a8f0
cmp al, 0x89
je 0x40a8f0
cmp al, 0x81
je 0x40a8e9
cmp al, 0x8a
jne 0x40a8f2
mov ecx, 1
jmp 0x40a8f2
xor ecx, ecx
push ebx
push edi
test edx, edx
jne 0x40a914
mov edx, dword [esi + 0x61ba0]
mov ebx, dword [esi + 0xb4]
mov edi, dword [esi + 0xc4]
sub edx, ebx
add edx, edi
mov dword [esi + 0x61b9c], edx
mov edx, dword [esi + 0x61b9c]
movzx ax, al
push edx
push eax
push ecx
mov ecx, 0x5600fc
call fcn.004542a0
mov ebx, eax
xor eax, eax
mov al, byte [esi + 0x8d]
mov edx, dword [esi + 0x61b9c]
push edx
lea eax, [eax + eax*8]
lea ecx, [eax + eax*8]
lea edi, [ecx*4 + 0x5600fc]
mov ecx, edi
call fcn.00466130
test eax, eax
je 0x40ac44
xor eax, eax
push 0x3f800000
mov al, byte [esi + 0x61bb4]
push ecx
mov dword [esp + 0x14], eax
xor ecx, ecx
fild dword [esp + 0x14]
mov cl, byte [esi + 0x61bb3]
xor edx, edx
mov dword [esp + 0x14], ecx
mov dl, byte [esi + 0x61bb2]
fmul dword [0x47639c]
lea eax, [esp + 0xa4]
fstp dword [esp]
fild dword [esp + 0x14]
push ecx
mov dword [esp + 0x18], edx
fmul dword [0x47639c]
fstp dword [esp]
fild dword [esp + 0x18]
push ecx
fmul dword [0x47639c]
fstp dword [esp]
push eax
call fcn.00466800
xor ecx, ecx
mov eax, dword [0x8ab7bc]
mov cl, byte [esi + 0x61bb5]
add esp, 0x14
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x9c]
fild dword [esp + 0xc]
push ecx
push eax
fmul dword [0x47639c]
fstp dword [esp + 0xb0]
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [edi + 0x38]
movsx edx, word [eax + 4]
movsx ecx, word [eax]
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
movsx edx, word [eax + 2]
fmul dword [0x476364]
movsx eax, word [eax + 6]
faddp st(1)
mov dword [esp + 0xc], edx
fiadd dword [esi + 0xe4]
fsub dword [0x476474]
fstp dword [esp + 0x10]
fild dword [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [0x8ab7bc]
push eax
fmul dword [0x476364]
mov ecx, dword [eax]
fiadd dword [esp + 0x10]
fiadd dword [esi + 0xe8]
fsubr dword [0x476470]
fstp dword [esp + 0x18]
call dword [ecx + 0x14]
test eax, eax
jl 0x40ac44
mov eax, dword [0x8ab7bc]
lea ecx, [esp + 0x120]
push ecx
push 1
mov edx, dword [eax]
push eax
call dword [edx + 0x30]
fld dword [esp + 0x10]
mov eax, dword [edi + 0x38]
mov dword [esp + 0x78], 0
fstp dword [esp + 0x8c]
fld dword [esp + 0x14]
fstp dword [esp + 0x90]
mov dword [esp + 0x74], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x98], 0x3f800000
mov dword [esp + 0x84], 0x3f800000
mov dword [esp + 0x70], 0x3f800000
mov dword [esp + 0x5c], 0x3f800000
mov dword [esp + 0x94], 0
lea ecx, [esp + 0x5c]
movsx edx, word [eax + 2]
movsx eax, word [eax]
mov dword [esp + 0xc], edx
lea edx, [esp + 0x1c]
fild dword [esp + 0xc]
mov dword [esp + 0xc], eax
push ecx
fild dword [esp + 0x10]
lea eax, [esp + 0xe4]
push edx
push eax
mov dword [esp + 0x44], 0
fstp dword [esp + 0x28]
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], 0
fstp dword [esp + 0x3c]
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x64], 0x3f800000
mov dword [esp + 0x50], 0x3f800000
call fcn.00467000
mov eax, dword [0x8ab7bc]
add esp, 0xc
lea edx, [esp + 0xe0]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0x2c]
mov cl, byte [esi + 0x61bb6]
mov edx, dword [0x8ab7bc]
lea eax, [esp + 0x9c]
push eax
push ecx
push edx
call fcn.00466ce0
mov eax, dword [0x8ab7bc]
add esp, 0xc
mov ecx, dword [eax]
push ebx
push 0
push eax
call dword [ecx + 0x8c]
mov eax, dword [0x8ab7bc]
mov edx, dword [eax]
push 0
lea ecx, [esi + 0x61bd8]
push 4
push ecx
push 0x112
push 5
push eax
call dword [edx + 0x64]
mov edx, dword [0x8ab7bc]
push edx
call fcn.00466f20
mov eax, dword [0x8ab7bc]
add esp, 4
lea edx, [esp + 0x120]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0x2c]
mov eax, dword [0x8ab7bc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov al, byte [esi + 0x61bab]
test al, al
je 0x40adb6
mov eax, dword [esi + 0x61bb8]
test eax, eax
je 0x40acf7
mov cl, byte [esi + 0x61ba9]
mov al, byte [esi + 0x61ba8]
mov dl, cl
shr dl, 1
cmp al, dl
jae 0x40ac84
mov byte [esi + 0x61baa], al
inc al
mov byte [esi + 0x61bab], al
jmp 0x40ac96
sub cl, al
mov al, cl
mov byte [esi + 0x61bab], cl
dec al
mov byte [esi + 0x61baa], al
xor ecx, ecx
xor edx, edx
mov cl, byte [esi + 0x61bb1]
mov dl, byte [esi + 0x61bb0]
push ecx
xor eax, eax
mov al, byte [esi + 0x61baf]
xor ecx, ecx
mov cl, byte [esi + 0x61bab]
push edx
push eax
xor edx, edx
mov dl, byte [esi + 0x61bae]
push ecx
xor eax, eax
xor ecx, ecx
mov al, byte [esi + 0x61bad]
mov cl, byte [esi + 0x61bac]
push edx
push eax
mov eax, dword [esi + 0xe8]
xor edx, edx
mov dl, byte [esi + 0x61baa]
push ecx
mov ecx, dword [esi + 0xe4]
add eax, 0x10
push edx
add ecx, 0x18
push eax
push ecx
jmp 0x40adac
mov eax, dword [esi + 0x61bbc]
test eax, eax
je 0x40adb6
mov ecx, dword [esi + 0x61ba0]
mov edx, dword [esi + 0x61ba4]
sub edx, ecx
cmp edx, 8
jbe 0x40ad2f
mov eax, dword [esi + 0x61b9c]
sub eax, ecx
shr eax, 1
mov cl, al
add cl, 2
mov byte [esi + 0x61baa], cl
jmp 0x40ad48
mov al, byte [esi + 0x61b9c]
mov bl, byte [esi + 0x61ba0]
sub al, bl
mov dl, al
add dl, 2
mov byte [esi + 0x61baa], dl
add al, 3
xor ecx, ecx
mov cl, byte [esi + 0x61bb0]
mov byte [esi + 0x61bab], al
xor eax, eax
xor edx, edx
mov al, byte [esi + 0x61bb1]
mov dl, byte [esi + 0x61baf]
push eax
xor eax, eax
mov al, byte [esi + 0x61bab]
push ecx
push edx
xor ecx, ecx
mov cl, byte [esi + 0x61bae]
push eax
xor edx, edx
xor eax, eax
mov dl, byte [esi + 0x61bad]
mov al, byte [esi + 0x61bac]
push ecx
push edx
mov edx, dword [esi + 0xe8]
xor ecx, ecx
mov cl, byte [esi + 0x61baa]
push eax
mov eax, dword [esi + 0xe4]
add edx, 0x10
push ecx
add eax, 0x18
push edx
push eax
mov ecx, 0x7da1d8
call fcn.004346b0
pop edi
pop ebx
mov eax, 1
pop esi
add esp, 0x154
ret
xor eax, eax
pop esi
add esp, 0x154
ret