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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov edi, dword [0x5b2ebc]
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.0040e680
mov eax, dword [0x540738]
imul eax, dword [esp + 0x1c]
add ebp, eax
cmp ebp, 0x7c0
jle 0x4109f2
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4109eb
call fcn.004090d0
mov dword [esp + 0x14], 1
mov ebp, 0x7c0
jmp 0x4109fa
test ebp, ebp
jl 0x410e71
mov eax, dword [esp + 0x14]
test eax, eax
je 0x410ab4
call fcn.00409100
mov esi, eax
cmp esi, 0x1b
je 0x410a1f
cmp esi, 8
je 0x410a1f
cmp esi, dword [0x5b2ec8]
jne 0x410a41
push 0x16
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0xfffffffc
mov dword [esp + 0x28], 1
call fcn.0040ab20
add esp, 4
cmp esi, 0x26
je 0x410a4e
cmp esi, dword [0x5b2ec0]
jne 0x410a61
test edi, edi
jle 0x410a61
dec edi
push 0x15
mov dword [esp + 0x1c], edi
call fcn.0040ab20
add esp, 4
cmp esi, 0x28
je 0x410a6e
cmp esi, dword [0x5b2ec4]
jne 0x410a88
mov ecx, dword [0x5b1200]
dec ecx
cmp edi, ecx
jae 0x410a88
inc edi
push 0x15
mov dword [esp + 0x1c], edi
call fcn.0040ab20
add esp, 4
cmp esi, 0xd
je 0x410a9a
cmp esi, 0x20
je 0x410a9a
cmp esi, dword [0x5b2ecc]
jne 0x410ab4
test edi, edi
jne 0x410ab4
push 0x16
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0xfffffffc
call fcn.0040ab20
add esp, 4
push 0
call fcn.0040b9f0
push 5
push 0xc
push 0xff00
push 0x10
push str.SELECT_THE_GAME:
call fcn.0040bac0
mov eax, dword [0x5b1200]
add esp, 0x18
xor esi, esi
test eax, eax
jbe 0x410c34
cmp esi, edi
jne 0x410bc3
test esi, esi
jne 0x410b4a
push 7
push 8
push 0xffffff
push 0xb
push 0x5b1204
call fcn.0040bac0
mov eax, dword [0x5b1264]
lea edx, [esp + 0x40]
push edx
push eax
call fcn.00408f00
mov ecx, 0x19
push 7
sub ecx, eax
lea edx, [esp + 0x4c]
push ecx
push 0xffffff
push eax
push edx
call fcn.0040bac0
push 7
push 0x1a
push 0xffffff
push 6
push str.Levels
call fcn.0040bac0
add esp, 0x44
jmp 0x410c26
lea edi, [esi + 7]
lea eax, [esi + esi*2]
push edi
push 8
push 0xff0000
lea ecx, [eax*4 + 0x5b1204]
push 0xb
push ecx
call fcn.0040bac0
mov eax, dword [esi*4 + 0x5b1264]
lea edx, [esp + 0x40]
push edx
push eax
call fcn.00408f00
mov ecx, 0x19
push edi
sub ecx, eax
lea edx, [esp + 0x4c]
push ecx
push 0xff0000
push eax
push edx
call fcn.0040bac0
push edi
push 0x1a
push 0xff0000
push 6
push str.Levels
call fcn.0040bac0
add esp, 0x44
push 0xe
push 0
push 0xff0000
push 0x28
push str._AVAILABLE_IN_REGISTERED_VERSION_ONLY__
call fcn.0040bac0
add esp, 0x14
jmp 0x410c22
lea edi, [esi + 7]
lea eax, [esi + esi*2]
push edi
push 8
push 0x8fff
lea ecx, [eax*4 + 0x5b1204]
push 0xb
push ecx
call fcn.0040bac0
mov eax, dword [esi*4 + 0x5b1264]
lea edx, [esp + 0x40]
push edx
push eax
call fcn.00408f00
mov ecx, 0x19
push edi
sub ecx, eax
lea edx, [esp + 0x4c]
push ecx
push 0x8fff
push eax
push edx
call fcn.0040bac0
push edi
push 0x1a
push 0x8fff
push 6
push str.Levels
call fcn.0040bac0
add esp, 0x44
mov edi, dword [esp + 0x18]
mov eax, dword [0x5b1200]
inc esi
cmp esi, eax
jb 0x410ae2
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.0040bca0
mov ecx, dword [0x540738]
mov edx, dword [esp + 0x2c]
push 0xe
lea eax, [edx + ecx*2]
and eax, 0x7ff
mov dword [esp + 0x30], eax
fld dword [eax*8 + 0x538f6c]
fadd dword [0x43923c]
fmul dword [0x439298]
fadd dword [0x43929c]
call fcn.0042ff3c
shl eax, 0x10
push eax
call fcn.0040bb10
add esp, 0x14
call fcn.00405c40
test eax, eax
je 0x4109bd
mov esi, ebp
push 0
sar esi, 4
call fcn.004056e0
mov eax, dword [0x44c1e4]
add esp, 4
test eax, eax
je 0x410d2b
push 0
call fcn.004056b0
mov eax, dword [0x540738]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], eax
add esp, 4
fild qword [esp + 0x34]
fmul dword [0x4392f0]
fadd dword [esp + 0x10]
fst dword [esp + 0x10]
fcomp dword [0x43923c]
fnstsw ax
test ah, 0x41
jne 0x410d00
fld dword [esp + 0x10]
fsub dword [0x43923c]
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.0040deb0
add esp, 0x14
push 3
call fcn.004056b0
push 1
call fcn.00405720
mov edx, ebp
sar edx, 6
push edx
call fcn.0040baa0
push 0
call fcn.00405720
mov eax, dword [0x5b1124]
push 0x3ba3d70a
push 0
push 0
push eax
call fcn.0040be30
mov ecx, dword [0x540738]
lea edx, [esp + 0x64]
push edx
lea ebx, [ebx + ecx*2]
call fcn.004012b0
lea eax, [esp + 0x68]
push ebx
push eax
call fcn.004012f0
lea ecx, [esp + 0x70]
push 0x3e051eb8
push ecx
call fcn.00401480
mov eax, dword [0x57abd0]
lea edx, [esp + 0x78]
push edx
push eax
call fcn.00401610
fild dword [esp + 0x54]
mov ecx, dword [0x57eda0]
add esp, 0x38
fmul dword [0x4392ec]
fsubr dword [0x4392e8]
fstp dword [esp]
push 0
push 0xbc54fdf4
push ecx
call fcn.0040be30
push 1
call fcn.004056e0
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 [0x4392e4]
fsin
fmul dword [0x4392e0]
fadd dword [0x4392dc]
fstp dword [esp]
push edx
call fcn.00401480
mov ecx, dword [0x5810ac]
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.00401610
mov edx, dword [0x57ac14]
push 0x3ba3d70a
push 0
push 0xbc23d70a
push edx
call fcn.0040be30
push 0x3ba3d70a
mov eax, dword [0x57ac14]
push 0
push 0x3c1ba5e3
push eax
call fcn.0040be30
add esp, 0x30
call fcn.00405cd0
jmp 0x4109bd
mov eax, dword [esp + 0x24]
test eax, eax
je 0x410e84
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x5c
ret
mov dword [0x5b2ebc], edi
call fcn.004212a0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret