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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov edi, dword [0x25b610c]
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x1c], 3
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], ebp
call fcn.0040eff0
mov eax, dword [0x2543970]
imul eax, dword [esp + 0x1c]
add ebp, eax
cmp ebp, 0x7c0
jle 0x4116a2
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x41169b
call fcn.00409430
mov dword [esp + 0x14], 1
mov ebp, 0x7c0
jmp 0x4116aa
test ebp, ebp
jl 0x411b94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x411764
call fcn.00409460
mov esi, eax
cmp esi, 0x1b
je 0x4116cf
cmp esi, 8
je 0x4116cf
cmp esi, dword [0x25b6118]
jne 0x4116f1
push 0x16
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0xfffffffc
mov dword [esp + 0x28], 1
call fcn.0040aea0
add esp, 4
cmp esi, 0x26
je 0x4116fe
cmp esi, dword [0x25b6110]
jne 0x411711
test edi, edi
jle 0x411711
dec edi
push 0x15
mov dword [esp + 0x1c], edi
call fcn.0040aea0
add esp, 4
cmp esi, 0x28
je 0x41171e
cmp esi, dword [0x25b6114]
jne 0x411738
mov ecx, dword [0x25b4450]
dec ecx
cmp edi, ecx
jae 0x411738
inc edi
push 0x15
mov dword [esp + 0x1c], edi
call fcn.0040aea0
add esp, 4
cmp esi, 0xd
je 0x41174a
cmp esi, 0x20
je 0x41174a
cmp esi, dword [0x25b611c]
jne 0x411764
test edi, edi
jne 0x411764
push 0x16
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0xfffffffc
call fcn.0040aea0
add esp, 4
push 0
call fcn.0040bed0
push 5
push 0xc
push 0xff00
push 0x10
push 0x440718
call fcn.0040bfa0
mov eax, dword [0x25b4450]
add esp, 0x18
xor esi, esi
test eax, eax
jbe 0x4118e4
cmp esi, edi
jne 0x411873
test esi, esi
jne 0x4117fa
push 7
push 8
push 0xffffff
push 0xb
push 0x25b4454
call fcn.0040bfa0
mov eax, dword [0x25b44b4]
lea edx, [esp + 0x40]
push edx
push eax
call fcn.00409260
mov ecx, 0x19
push 7
sub ecx, eax
lea edx, [esp + 0x4c]
push ecx
push 0xffffff
push eax
push edx
call fcn.0040bfa0
push 7
push 0x1a
push 0xffffff
push 6
push 0x440710
call fcn.0040bfa0
add esp, 0x44
jmp 0x4118d6
lea edi, [esi + 7]
lea eax, [esi + esi*2]
push edi
push 8
push 0xff0000
lea ecx, [eax*4 + 0x25b4454]
push 0xb
push ecx
call fcn.0040bfa0
mov eax, dword [esi*4 + 0x25b44b4]
lea edx, [esp + 0x40]
push edx
push eax
call fcn.00409260
mov ecx, 0x19
push edi
sub ecx, eax
lea edx, [esp + 0x4c]
push ecx
push 0xff0000
push eax
push edx
call fcn.0040bfa0
push edi
push 0x1a
push 0xff0000
push 6
push 0x440710
call fcn.0040bfa0
add esp, 0x44
push 0xe
push 0
push 0xff0000
push 0x28
push 0x4406e4
call fcn.0040bfa0
add esp, 0x14
jmp 0x4118d2
lea edi, [esi + 7]
lea eax, [esi + esi*2]
push edi
push 8
push 0x8fff
lea ecx, [eax*4 + 0x25b4454]
push 0xb
push ecx
call fcn.0040bfa0
mov eax, dword [esi*4 + 0x25b44b4]
lea edx, [esp + 0x40]
push edx
push eax
call fcn.00409260
mov ecx, 0x19
push edi
sub ecx, eax
lea edx, [esp + 0x4c]
push ecx
push 0x8fff
push eax
push edx
call fcn.0040bfa0
push edi
push 0x1a
push 0x8fff
push 6
push 0x440710
call fcn.0040bfa0
add esp, 0x44
mov edi, dword [esp + 0x18]
mov eax, dword [0x25b4450]
inc esi
cmp esi, eax
jb 0x411792
mov eax, ebp
sar eax, 3
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fstp dword [esp + 0x28]
mov eax, dword [esp + 0x28]
push eax
push eax
push eax
call fcn.0040c1d0
mov ecx, dword [0x2543970]
mov edx, dword [esp + 0x2c]
push 0xe
lea eax, [edx + ecx*2]
and eax, 0x7ff
mov dword [esp + 0x30], eax
fld dword [eax*8 + 0x253c198]
fadd dword [0x43a280]
fmul dword [0x43a348]
fadd dword [0x43a344]
call fcn.00430d2c
shl eax, 0x10
push eax
call fcn.0040bff0
add esp, 0x14
call fcn.00406080
test eax, eax
je 0x41166d
mov esi, ebp
push 0
sar esi, 4
call fcn.00405a20
mov eax, dword [0x44f2bc]
add esp, 4
test eax, eax
je 0x4119db
push 0
call fcn.004059f0
mov eax, dword [0x2543970]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], eax
add esp, 4
fild qword [esp + 0x34]
fmul dword [0x43a2e4]
fadd dword [esp + 0x10]
fst dword [esp + 0x10]
fcomp dword [0x43a280]
fnstsw ax
test ah, 0x41
jne 0x4119b0
fld dword [esp + 0x10]
fsub dword [0x43a280]
fstp dword [esp + 0x10]
mov ecx, esi
shl ecx, 8
add ecx, esi
fld dword [esp + 0x10]
shl ecx, 8
add ecx, esi
push ecx
push 0x40800000
push 0x40800000
push ecx
fchs
fstp dword [esp]
push 0
call fcn.0040e410
add esp, 0x14
push 5
call fcn.004059f0
push 1
call fcn.00405a60
mov edx, ebp
sar edx, 6
push edx
call fcn.0040bf80
push 0
call fcn.00405a60
push 4
call fcn.004059f0
mov eax, dword [0x25b4370]
push 0x3ba3d70a
push 0
push 0
push eax
call fcn.0040c390
push 3
call fcn.004059f0
mov ecx, dword [0x2543970]
lea edx, [esp + 0x6c]
push edx
lea ebx, [ebx + ecx*2]
call fcn.004012b0
lea eax, [esp + 0x70]
push ebx
push eax
call fcn.004012f0
lea ecx, [esp + 0x78]
push 0x3e051eb8
push ecx
call fcn.00401480
mov eax, dword [0x257de0c]
lea edx, [esp + 0x80]
push edx
push eax
call fcn.00401610
fild dword [esp + 0x5c]
add esp, 0x44
fmul dword [0x43a340]
push ecx
mov ecx, dword [0x2581fd8]
fsubr dword [0x43a33c]
fstp dword [esp]
push 0
push 0xbc54fdf4
push ecx
call fcn.0040c390
push 1
call fcn.00405a20
lea edx, [esp + 0x58]
push edx
call fcn.004012b0
lea eax, [esp + 0x5c]
push 0x200
push eax
call fcn.004012f0
lea ecx, [esp + 0x64]
push ebx
push ecx
call fcn.00401400
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], 0
fild qword [esp + 0x64]
add esp, 0x24
lea edx, [esp + 0x48]
fmul dword [0x43a338]
fsin
fmul dword [0x43a334]
fadd dword [0x43a27c]
fstp dword [esp]
push edx
call fcn.00401480
mov ecx, dword [0x25842ec]
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.00401610
push 0x3ba3d70a
push 0
mov edx, dword [0x257de50]
push 0xbc23d70a
push edx
call fcn.0040c390
mov eax, dword [0x257de50]
push 0x3ba3d70a
push 0
push 0x3c1ba5e3
push eax
call fcn.0040c390
mov edx, dword [0x25842ec]
push 0x3ba3d70a
push 0
lea ecx, [esp + 0x7c]
push 0xbc23d70a
push ecx
push edx
push 0x3f400000
call fcn.0040e750
mov ecx, dword [0x25842ec]
add esp, 0x48
lea eax, [esp + 0x44]
push 0x3ba3d70a
push 0
push 0x3c1ba5e3
push eax
push ecx
push 0x3f400000
call fcn.0040e750
push 1
call fcn.00405a60
push 6
call fcn.004059f0
call fcn.0040e9a0
push 0
call fcn.00405a60
add esp, 0x24
call fcn.00406110
jmp 0x41166d
mov eax, dword [esp + 0x24]
test eax, eax
je 0x411ba7
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x5c
ret
mov dword [0x25b610c], edi
call fcn.00422fb0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret