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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xb4
mov eax, dword [0x4464f4]
xor eax, esp
mov dword [esp + 0xb0], eax
fldz
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
fst qword [esi]
push edi
fld qword [0x43f978]
xor edi, edi
fstp qword [esi + 8]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x84], eax
fst qword [esi + 0x10]
mov dword [esp + 0x3c], edi
fst qword [esp + 0x78]
mov dword [esi + 0x18], edi
fstp qword [esp + 0x88]
mov dword [esi + 0x1c], edi
call fcn.0040115e
test eax, eax
je 0x409b16
mov eax, dword [0x440154]
mov ecx, dword [0x44014c]
mov edx, dword [0x440150]
mov dword [esp + 0xb0], eax
mov eax, dword [0x447c48]
cmp eax, edi
mov dword [esp + 0xa8], ecx
mov ecx, dword [0x440158]
mov dword [esp + 0x50], edi
mov dword [esp + 0xac], edx
mov dword [esp + 0xb4], ecx
mov word [esp + 0xa0], 0x17
mov dword [esp + 0xa4], edi
mov word [esp + 0xa2], di
jne 0x409ae8
push edi
call fcn.0040114f
mov dword [0x447c48], eax
lea edx, [esp + 0x50]
push edx
push edi
push edi
push ebx
call eax
mov ebx, eax
push ebx
call dword [0x4844d4]
cmp ebx, edi
je 0x409b2f
push 0x43fe78
call fcn.0040134d
add esp, 4
mov dword [0x457c74], 2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0040d67d
mov esp, ebp
pop ebp
ret 0xc
call dword [0x447c30]
cmp eax, 0xffffffff
mov dword [esp + 0x68], eax
jne 0x409b80
push 0x43fea4
call fcn.0040134d
mov eax, dword [0x447c4c]
mov esi, dword [esp + 0x54]
add esp, 4
cmp eax, edi
jne 0x409b64
push 2
call fcn.0040114f
mov dword [0x447c4c], eax
push esi
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0040d67d
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x24]
push eax
call fcn.0040d16e
mov ecx, dword [0x457c70]
mov ebx, eax
add esp, 4
cmp ecx, edi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x48], ebx
je 0x409c02
mov edi, ecx
lea edx, [edi + 1]
mov al, byte [edi]
add edi, 1
test al, al
jne 0x409ba5
mov eax, dword [esi + 0x24]
sub edi, edx
cdq
idiv edi
xor ebx, ebx
test eax, eax
mov dword [esp + 0x44], edx
jle 0x409be6
push edi
push ecx
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0040cbf0
mov eax, dword [esi + 0x24]
cdq
idiv edi
add dword [esp + 0x54], edi
mov ecx, dword [0x457c70]
add ebx, 1
add esp, 0xc
cmp ebx, eax
jl 0x409bc0
cmp dword [esp + 0x44], 0
je 0x409c26
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
push edx
push ecx
push eax
call fcn.0040cbf0
add esp, 0xc
jmp 0x409c26
call dword [0x484338]
push eax
call fcn.0040d77f
add esp, 4
cmp dword [esi + 0x24], edi
jle 0x409c26
call fcn.0040d78c
mov byte [edi + ebx], al
add edi, 1
cmp edi, dword [esi + 0x24]
jl 0x409c16
cmp dword [ebp + 0xc], 0
jne 0x409c4c
cmp dword [esi + 0x50], 0
jne 0x409c4c
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
mov eax, dword [esp + 0x40]
push ecx
push edx
push eax
push 0x43fda4
call fcn.0040134d
add esp, 0x10
mov cl, byte [esi + 0x30]
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x24]
add eax, 0x2c
push eax
mov byte [esp + 0x70], cl
mov dword [esp + 0x78], eax
call fcn.0040d16e
mov ebx, dword [esp + 0x40]
add esp, 4
cmp dword [0x457c68], 0
mov dword [esp + 0x4c], eax
jne 0x409d7a
cmp dword [0x457c70], 0
jne 0x409cb8
call dword [0x484338]
push eax
call fcn.0040d77f
xor edi, edi
add esp, 4
cmp dword [esi + 0x24], edi
jle 0x409cb8
call fcn.0040d78c
mov edx, dword [esp + 0x48]
mov byte [edi + edx], al
add edi, 1
cmp edi, dword [esi + 0x24]
jl 0x409ca4
cmp dword [0x457c6c], 0
je 0x409d57
cmp dword [ebp + 0xc], 0
mov dword [0x457c6c], 0
jne 0x409d57
cmp dword [esi + 0x50], 0
jne 0x409d57
cmp dword [esi + 0x18], 0
jne 0x409ce9
fldz
jmp 0x409cec
fld qword [esi + 8]
mov eax, dword [esp + 0x40]
fstp qword [esp + 0x90]
push eax
push 0x43fd84
call fcn.0040134d
mov edi, dword [esi + 0x1c]
mov ecx, ebx
sub ecx, edi
mov eax, ecx
imul eax, eax, 0x64
xor edx, edx
div dword [esp + 0x44]
mov ebx, dword [esp + 0x44]
push eax
push ecx
push edi
push ebx
push 0x43f8a8
call fcn.0040134d
push 0x43f86c
call fcn.0040134d
fld qword [esi + 0x10]
add esp, 8
fstp qword [esp + 0x10]
fld qword [esi]
fstp qword [esp + 8]
fld qword [esp + 0xa8]
fstp qword [esp]
push 0x43fd3c
call fcn.0040134d
add esp, 0x1c
cmp dword [esi + 0x20], 0
jne 0x409e8e
mov ecx, ebx
add ebx, 1
cmp ecx, dword [esi + 0x4c]
mov dword [esp + 0x3c], ebx
jne 0x409e95
sub ebx, 1
mov dword [esp + 0x3c], ebx
mov edx, dword [esp + 0x68]
push edx
call dword [0x447c38]
mov eax, dword [0x447c4c]
test eax, eax
mov edi, dword [esp + 0x50]
jne 0x409d9e
push 2
call fcn.0040114f
mov dword [0x447c4c], eax
push edi
call eax
mov eax, dword [esp + 0x64]
push eax
call fcn.0040c7aa
add esp, 4
cmp dword [esp + 0x4c], 0
je 0x409dc2
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0040c7aa
add esp, 4
mov eax, dword [esp + 0x70]
test eax, eax
je 0x409dd3
push eax
call fcn.0040c7aa
add esp, 4
cmp dword [esi + 0x18], 0
jne 0x409dde
fldz
fstp qword [esi + 8]
cmp dword [ebp + 0xc], 0
jne 0x409e52
cmp dword [esi + 0x50], 0
jne 0x409e52
test ebx, ebx
je 0x40a1ab
mov edx, dword [esp + 0x40]
push edx
push 0x43fd84
call fcn.0040134d
mov edi, dword [esi + 0x1c]
mov ecx, ebx
sub ecx, edi
mov eax, ecx
imul eax, eax, 0x64
xor edx, edx
div dword [esp + 0x44]
mov ebx, dword [esp + 0x44]
push eax
push ecx
push edi
push ebx
push 0x43f8a8
call fcn.0040134d
push 0x43f86c
call fcn.0040134d
fld qword [esi + 0x10]
add esp, 8
fstp qword [esp + 0x10]
fld qword [esi]
fstp qword [esp + 8]
fld qword [esi + 8]
fstp qword [esp]
push 0x43f67c
call fcn.0040134d
add esp, 0x1c
test ebx, ebx
je 0x409e73
mov eax, dword [esp + 0x84]
test eax, eax
je 0x409e73
mov dword [eax], ebx
mov ecx, dword [esi + 0x1c]
mov dword [eax + 4], ecx
lea edi, [eax + 8]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xbc]
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040d67d
mov esp, ebp
pop ebp
ret 0xc
add ebx, 1
mov dword [esp + 0x3c], ebx
lea edx, [esp + 0x98]
push edx
call dword [0x484348]
mov eax, dword [0x446100]
mov edx, dword [eax + 4]
mov ecx, 0x446100
call edx
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
mov edx, dword [0x446100]
mov dword [0x446108], eax
mov eax, dword [edx + 8]
mov dword [0x44610c], ecx
mov ecx, 0x446100
call eax
mov ecx, dword [esi + 0x2c]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x4c]
push ecx
push edx
movzx edx, word [esi + 0x24]
push eax
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [ecx + 0x18]
mov ecx, dword [esp + 0x7c]
push eax
push edx
lea eax, [esp + 0xbc]
push eax
push 0
push 0
push 0
push ecx
call dword [0x447c34]
mov ecx, 0x446100
mov edi, eax
call fcn.004011a9
xor edx, edx
cmp edi, 1
sete dl
lea eax, [esp + 0x54]
push eax
mov edi, edx
mov dword [esp + 0x48], edi
call dword [0x484354]
test edi, edi
jne 0x409fe7
cmp dword [esi + 0x54], edi
je 0x409f71
mov ecx, dword [esp + 0x40]
movzx edx, word [esp + 0x60]
movzx eax, word [esp + 0x5e]
push ecx
movzx ecx, word [esp + 0x60]
push edx
push eax
push ecx
push 0x43fcc0
call fcn.0040134d
add esp, 0x14
jmp 0x409fc1
cmp dword [esi + 0x58], 0
je 0x409faf
movzx eax, word [esp + 0x60]
mov edx, dword [esp + 0x40]
movzx ecx, word [esp + 0x5e]
push edx
movzx edx, word [esp + 0x60]
push eax
movzx eax, word [esp + 0x62]
push ecx
movzx ecx, word [esp + 0x62]
push edx
movzx edx, word [esp + 0x64]
push eax
push ecx
push edx
push 0x43fc7c
call fcn.0040134d
add esp, 0x20
jmp 0x409fc1
mov eax, dword [esp + 0x40]
push eax
push 0x43fc60
call fcn.0040134d
add esp, 8
mov dword [0x457c74], 1
cmp dword [esi + 0x48], 2
jne 0x40a179
push 0x64
push 0x1b8
call dword [0x484334]
jmp 0x40a179
mov edi, dword [esp + 0x4c]
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x40a021
push eax
mov dword [esp + 0x48], 0
call dword [0x484350]
mov ecx, dword [edi + 0x1c]
push ecx
push 0x43fc40
call fcn.0040134d
add esp, 8
mov dword [0x457c74], 5
jmp 0x40a179
fldz
fcomp qword [esp + 0x88]
fnstsw ax
test ah, 5
jp 0x40a06f
mov ecx, 0x446100
call fcn.0040122b
fcomp qword [0x43f928]
fnstsw ax
test ah, 0x41
jne 0x40a06f
mov ecx, 0x446100
call fcn.0040122b
fsub qword [esp + 0x88]
fabs
fld qword [esp + 0x78]
fsub st(1), st(0)
fxch st(1)
fmul qword [0x43fc18]
faddp st(1)
fstp qword [esp + 0x78]
mov ecx, 0x446100
call fcn.0040122b
fstp qword [esp + 0x88]
cmp dword [esi + 0x54], 0
je 0x40a0a7
movzx edx, word [esp + 0x60]
movzx eax, word [esp + 0x5e]
movzx ecx, word [esp + 0x5c]
push edx
push eax
push ecx
push 0x43fc00
call fcn.0040134d
add esp, 0x10
jmp 0x40a0de
cmp dword [esi + 0x58], 0
je 0x40a0de
movzx edx, word [esp + 0x60]
movzx eax, word [esp + 0x5e]
movzx ecx, word [esp + 0x5c]
push edx
movzx edx, word [esp + 0x5e]
push eax
movzx eax, word [esp + 0x5e]
push ecx
movzx ecx, word [esp + 0x60]
push edx
push eax
push ecx
push 0x43fbd8
call fcn.0040134d
add esp, 0x1c
mov edi, dword [esi + 0x5c]
test edi, edi
jne 0x40a0e7
mov edi, ebx
mov ecx, 0x446100
call fcn.0040122b
mov edx, dword [esi + 0x24]
mov eax, dword [esp + 0x40]
sub esp, 8
fstp qword [esp]
push edx
push eax
push edi
push 0x43ffcc
call fcn.0040134d
add esp, 0x18
cmp dword [ebp + 0xc], 0
jne 0x40a131
cmp dword [esi + 0x64], 0
je 0x40a131
fld qword [esp + 0x78]
sub esp, 8
fstp qword [esp]
push 0x43fb7c
call fcn.0040134d
add esp, 0xc
push 0x43f51c
call fcn.0040134d
mov edi, 1
add esp, 4
mov dword [0x457c74], 0
cmp dword [esi + 0x48], edi
jne 0x40a15f
push 0x64
push 0x1b8
call dword [0x484334]
add dword [esi + 0x1c], edi
mov ecx, 0x446100
call fcn.0040122b
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.00401078
cmp dword [esi + 0x20], 0
jne 0x40a188
cmp ebx, dword [esi + 0x4c]
je 0x409d7a
cmp dword [esp + 0x44], 0
je 0x40a199
mov ecx, dword [esi + 0x28]
push ecx
call dword [0x48432c]
cmp dword [0x457c68], 0
je 0x409c85
jmp 0x409d7a
push 0x43fb4c
call fcn.0040134d
add esp, 4
jmp 0x409e73