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

Disassembly:
jmp 0x406930
sub esp, 0x64
mov al, byte [0x433265]
push ebx
push ebp
xor ebp, ebp
mov ebx, 0x1e0
push esi
test al, al
push edi
mov esi, ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], 0x280
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebx
jne 0x406975
mov eax, dword [esi + 0x1a4]
mov ecx, 0x4318a8
push eax
call fcn.0040fd30
mov byte [0x433265], 1
mov al, byte [esi + 0xe08]
test al, al
je 0x4069bf
mov edi, dword [esp + 0x78]
push ebp
push ebp
push ebp
lea ecx, [esp + 0x20]
push ebp
push ecx
push edi
lea ecx, [esi + 0x188]
call fcn.00410550
push ebp
push ebp
push 0xda
lea edx, [esp + 0x20]
push 0xe4
push edx
push edi
lea ecx, [esi + 0x150]
call fcn.00410550
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4
mov al, byte [esi + 0xe09]
push ebp
test al, al
push ebp
je 0x406a31
mov edi, dword [esp + 0x80]
push ebp
lea eax, [esp + 0x20]
push ebp
push eax
push edi
lea ecx, [esi + 0x188]
call fcn.00410550
lea ecx, [esp + 0x14]
push ecx
push edi
lea ecx, [esi + 0x214]
call fcn.00414d30
lea edx, [esp + 0x44]
push str.Cheaters_never_prosper...
push edx
call fcn.004185fa
add esp, 8
lea eax, [esp + 0x44]
lea ecx, [esi + 0x1a8]
push 0x8000
push 1
push 0xd2
push 0x62
push eax
push edi
call fcn.00410ca0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4
mov edi, dword [esp + 0x80]
lea ecx, [esp + 0x1c]
push ecx
push edi
lea ecx, [esi + 0xa8]
call fcn.00410660
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
push 0
lea edx, [esp + 0x28]
lea ebp, [esi + 0x38]
push 1
push edx
push edi
mov ecx, ebp
mov dword [esp + 0x3c], 0x14
mov dword [esp + 0x40], ebx
call fcn.00410660
push 0
lea eax, [esp + 0x28]
push 0
push eax
push edi
mov ecx, ebp
mov dword [esp + 0x34], 0x26c
mov dword [esp + 0x3c], 0x280
call fcn.00410660
mov ecx, dword [esi + 0xddc]
lea edx, [esp + 0x44]
push ecx
push 0x42b11c
push edx
call fcn.004185fa
add esp, 0xc
lea eax, [esp + 0x44]
lea ecx, [esi + 0x1f0]
push 0x8000
push 1
push 0
push 0x19
push eax
push edi
call fcn.00410ca0
mov eax, dword [esi + 0xde4]
test eax, eax
jl 0x406b04
mov ecx, dword [esi + eax*4 + 0xbbc]
lea edx, [esp + 0x44]
inc ecx
push ecx
push str.level__d
push edx
call fcn.004185fa
add esp, 0xc
lea eax, [esp + 0x44]
lea ebp, [esi + 0x1a8]
push 0x8000
push 1
push 0x1c
push 0x19
push eax
jmp 0x406b2c
lea ecx, [esp + 0x44]
push str.custom_level
push ecx
call fcn.004185fa
add esp, 8
lea edx, [esp + 0x44]
lea ebp, [esi + 0x1a8]
push 0x8000
push 1
push 0x1c
push 0x19
push edx
push edi
mov ecx, ebp
call fcn.00410ca0
mov al, byte [0x433264]
test al, al
je 0x406b87
mov eax, dword [0x433254]
lea ecx, [esp + 0x44]
push eax
push 0x42b13c
push ecx
call fcn.004185fa
mov eax, dword [ebp]
add esp, 0xc
mov edx, ebx
mov ecx, ebp
push 0x8000
sub edx, eax
push 1
push edx
lea eax, [esp + 0x50]
push 1
push eax
call fcn.00410e60
mov ecx, 0x267
lea edx, [esp + 0x50]
sub ecx, eax
push ecx
push edx
push edi
mov ecx, ebp
call fcn.00410ca0
mov eax, dword [esi + 0xdf8]
test eax, eax
je 0x406ba9
mov ecx, dword [ebp]
push 0x8000
sub ebx, ecx
push 1
push ebx
lea eax, [esi + 0xe0a]
push 0x19
push eax
jmp 0x406c02
cmp dword [esi + 0xdf0], 1
jle 0x406c0a
mov eax, dword [esi + 0xbb0]
cmp eax, 0x9c4
ja 0x406bd4
jae 0x406c0a
mov eax, dword [esi + 0xde0]
mov ecx, 0x18
cdq
idiv ecx
cmp edx, 0xc
jle 0x406c0a
mov edx, dword [esi + 0xe00]
lea eax, [esp + 0x44]
inc edx
push edx
push str.Player__d
push eax
call fcn.004185fa
mov ecx, dword [ebp]
add esp, 0xc
sub ebx, ecx
lea ecx, [esp + 0x44]
push 0x8000
push 1
push ebx
push 0x19
push ecx
push edi
mov ecx, ebp
call fcn.00410ca0
mov eax, dword [esi + 0xe00]
xor ebp, ebp
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x25c]
mov ecx, dword [eax + edx*4 + 4]
test ecx, ecx
jle 0x406c5b
mov eax, ebp
lea edx, [esp + 0x14]
sub eax, ecx
push edx
add eax, 0x14
push 0x1e
mov ecx, eax
push 0
shl ecx, 5
sub ecx, eax
push ecx
push edi
mov ecx, esi
call fcn.0040101e
mov eax, dword [esi + 0xe00]
inc ebp
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x25c]
mov ecx, dword [eax + edx*4 + 4]
cmp ebp, ecx
jl 0x406c23
test byte [esi + 0x278], 4
je 0x406cae
mov eax, dword [esi + 0xdd0]
xor ebx, ebx
test eax, eax
jle 0x406cae
xor ebp, ebp
lea ecx, [eax*8]
mov edx, 0x280
sub ecx, eax
push 1
shl ecx, 1
sub edx, ecx
push 0xf
sar edx, 1
add edx, ebp
push 0
lea eax, [esp + 0x20]
push edx
push eax
push edi
lea ecx, [esi + 0x8c]
call fcn.00410550
mov eax, dword [esi + 0xdd0]
inc ebx
add ebp, 0xe
cmp ebx, eax
jl 0x406c72
test byte [esi + 0x278], 1
je 0x406d2d
mov eax, dword [esi + 0xdd4]
xor ecx, ecx
cmp eax, ecx
je 0x406d2d
mov dword [esp + 0x2c], eax
mov edx, 0x14
mov dword [esp + 0x24], ecx
add eax, 0xc8
mov dword [esp + 0x38], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x40], edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x18]
lea ebp, [esi + 0xfc]
push edx
push eax
push edi
mov ecx, ebp
mov dword [esp + 0x40], 0x28
mov dword [esp + 0x44], 0xc8
call fcn.004105e0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push 0
push 0
push ecx
lea eax, [esp + 0x20]
push edx
push eax
push edi
mov ecx, ebp
call fcn.00410550
xor ebp, ebp
mov ecx, dword [esi + 0x23c]
mov al, byte [ecx + ebp]
cmp al, 0x40
jne 0x406d67
mov ecx, dword [esi + 0xde0]
mov eax, ecx
and eax, 0x8000003f
jns 0x406d50
dec eax
or eax, 0xffffffc0
inc eax
cdq
and edx, 0xf
add eax, edx
sar eax, 4
add eax, 4
and ecx, 0x8000000f
push eax
jns 0x406d90
jmp 0x406d8b
test al, al
jbe 0x406dcc
cmp al, 0x3f
je 0x406dcc
and eax, 0xff
lea ecx, [eax - 1]
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
sar eax, 4
and ecx, 0x8000000f
push eax
jns 0x406d90
dec ecx
or ecx, 0xfffffff0
inc ecx
mov eax, 0x66666667
push ecx
imul ebp
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edx + edx*2]
lea ecx, [eax + eax*4]
mov eax, ebp
push ecx
mov ecx, 0x14
cdq
idiv ecx
lea ecx, [esp + 0x20]
lea eax, [edx + edx*2]
lea edx, [eax + eax*4]
lea eax, [edx + edx + 0x14]
push eax
push ecx
push edi
lea ecx, [esi + 0x1c]
call fcn.00410550
inc ebp
cmp ebp, 0x280
jl 0x406d2f
mov eax, dword [esi + 0xdc0]
xor ebx, ebx
test eax, eax
jle 0x406e26
xor ebp, ebp
mov edx, dword [esi + 0x24c]
mov cl, byte [edx + ebp + 0x1c]
lea eax, [edx + ebp]
test cl, cl
je 0x406e18
mov ecx, dword [eax]
mov edx, dword [eax + 0x14]
push ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 4]
add edx, 0x14
push ecx
lea eax, [esp + 0x20]
push edx
push eax
push edi
lea ecx, [esi + 0x54]
call fcn.00410550
mov eax, dword [esi + 0xdc0]
inc ebx
add ebp, 0x20
cmp ebx, eax
jl 0x406de7
mov eax, dword [esi + 0xdc8]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x78], ebx
jle 0x406ed0
mov ecx, dword [esi + 0x254]
add ecx, ebx
mov al, byte [ecx + 0x10]
test al, al
je 0x406eb6
mov eax, dword [ecx]
test eax, eax
jne 0x406e85
mov ebp, dword [ecx + 0xc]
mov eax, ebp
cdq
and edx, 7
add eax, edx
sar eax, 3
and ebp, 0x80000007
push eax
jns 0x406e6b
dec ebp
or ebp, 0xfffffff8
inc ebp
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
push ebp
add eax, 0x14
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
push edi
lea ecx, [esi + 0xe0]
jmp 0x406eb1
cmp eax, 1
jne 0x406eb6
mov edx, dword [ecx + 0xc]
push 8
and edx, 0x80000007
jns 0x406e9c
dec edx
or edx, 0xfffffff8
inc edx
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 4]
push edx
add ecx, 0x14
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push edi
lea ecx, [esi + 0x1c]
call fcn.00410550
mov eax, dword [esp + 0x78]
mov ecx, dword [esi + 0xdc8]
inc eax
add ebx, 0x14
cmp eax, ecx
mov dword [esp + 0x78], eax
jl 0x406e3a
mov eax, dword [esi + 0xdbc]
xor ebp, ebp
test eax, eax
jle 0x406f26
xor ebx, ebx
mov eax, dword [esi + 0x248]
add eax, ebx
mov cl, byte [eax + 0x1d]
test cl, cl
je 0x406f18
mov edx, dword [eax]
cmp edx, 2
je 0x406f18
mov ecx, dword [eax + 0x14]
push edx
mov edx, dword [eax + 0x18]
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
sub edx, ecx
sub eax, ecx
push edx
add eax, 0x14
lea ecx, [esp + 0x20]
push eax
push ecx
push edi
mov ecx, esi
call fcn.00410550
mov eax, dword [esi + 0xdbc]
inc ebp
add ebx, 0x20
cmp ebp, eax
jl 0x406ede
mov eax, dword [esi + 0xdcc]
xor ebx, ebx
test eax, eax
jle 0x406f7c
xor ebp, ebp
mov edx, dword [esi + 0x258]
mov cl, byte [edx + ebp + 0x14]
lea eax, [edx + ebp]
test cl, cl
je 0x406f6e
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
inc edx
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
sub edx, ecx
sub eax, ecx
push 0xf
add eax, 0x14
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
push edi
lea ecx, [esi + 0x8c]
call fcn.00410550
mov eax, dword [esi + 0xdcc]
inc ebx
add ebp, 0x18
cmp ebx, eax
jl 0x406f34
mov eax, dword [esi + 0xdc4]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x78], ebp
jle 0x40706b
mov dword [esp + 0x10], ebp
mov edx, dword [esi + 0x250]
add ebp, edx
mov al, byte [ebp + 0x18]
test al, al
je 0x407049
cmp dword [ebp + 0x14], 8
jge 0x406fd9
push 1
call fcn.004181e8
cdq
mov ecx, 3
idiv ecx
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x18]
add edx, 8
add eax, 0x14
push edx
mov edx, dword [ebp + 8]
push edx
push eax
push ecx
push edi
lea ecx, [esi + 0x8c]
jmp 0x407044
mov eax, dword [ebp]
lea ebx, [esi + 0x8c]
cmp eax, 0x10
push 1
jge 0x406fed
push 0xb
jmp 0x406fef
push 0xc
mov eax, dword [ebp + 4]
mov edx, dword [ebp + 8]
add eax, 0x14
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
push edi
mov ecx, ebx
call fcn.00410550
mov edx, dword [esi + 0x250]
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + edx]
lea ecx, [eax + edx]
mov eax, ebp
cdq
and edx, 0xf
add eax, edx
sar eax, 4
and ebp, 0x8000000f
push eax
jns 0x407030
dec ebp
or ebp, 0xfffffff0
inc ebp
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
push ebp
add eax, 0x14
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
push edi
mov ecx, ebx
call fcn.00410550
mov eax, dword [esp + 0x78]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esi + 0xdc4]
inc eax
add ebp, 0x1c
cmp eax, ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x10], ebp
jl 0x406f94
mov eax, dword [esi + 0x268]
mov ebp, dword [esi + 0x264]
lea edx, [esp + 0x14]
mov ecx, dword [esi + 0x26c]
push edx
push eax
sub eax, ebp
push 0x1c3
cdq
xor eax, edx
sub eax, edx
sar eax, 1
lea edx, [eax + ecx + 0x14]
mov ecx, esi
push edx
push edi
call fcn.0040101e
mov ecx, dword [esi + 0xdbc]
xor edx, edx
test ecx, ecx
jle 0x40719d
mov eax, dword [esi + 0x248]
add eax, 0x1c
mov bl, byte [eax + 1]
test bl, bl
je 0x4070c8
cmp byte [eax], 0
jne 0x4070c8
mov edx, 1
add eax, 0x20
dec ecx
jne 0x4070b7
test edx, edx
je 0x40719d
mov ecx, dword [esi + 0xde0]
lea ebx, [esi + 0x134]
mov eax, ecx
and eax, 0x8000001f
jns 0x4070f0
dec eax
or eax, 0xffffffe0
inc eax
cdq
and edx, 0xf
add eax, edx
sar eax, 4
add eax, 2
and ecx, 0x8000000f
push eax
jns 0x40710a
dec ecx
or ecx, 0xfffffff0
inc ecx
mov eax, dword [esi + 0x268]
mov edx, dword [esi + 0x264]
sub eax, edx
push ecx
mov ecx, dword [esi + 0x26c]
push 0x1b3
cdq
xor eax, edx
sub eax, edx
sar eax, 1
lea edx, [eax + ecx - 0xc]
lea eax, [esp + 0x20]
push edx
push eax
push edi
mov ecx, ebx
call fcn.00410550
mov ecx, dword [esi + 0xde0]
mov ebp, dword [esi + 0x264]
mov eax, ecx
and eax, 0x8000001f
jns 0x407157
dec eax
or eax, 0xffffffe0
inc eax
cdq
and edx, 0xf
add eax, edx
sar eax, 4
and ecx, 0x8000000f
push eax
jns 0x40716e
dec ecx
or ecx, 0xfffffff0
inc ecx
mov eax, dword [esi + 0x268]
push ecx
sub eax, ebp
mov ecx, dword [esi + 0x26c]
cdq
xor eax, edx
push 0x1b3
sub eax, edx
sar eax, 1
sub ecx, eax
lea eax, [esp + 0x20]
lea edx, [ecx + ebp + 0x14]
mov ecx, ebx
push edx
push eax
push edi
call fcn.00410550
mov al, byte [esi + 0x284]
test al, al
je 0x4071e8
mov ecx, dword [esi + 0xde0]
push 1
and ecx, 0x8000000f
jns 0x4071bc
dec ecx
or ecx, 0xfffffff0
inc ecx
mov eax, dword [esi + 0x27c]
xor edx, edx
cmp ecx, 8
lea ecx, [esp + 0x18]
setge dl
add edx, 0xd
add eax, 4
push edx
push 0x1b3
push eax
push ecx
push edi
lea ecx, [esi + 0x8c]
call fcn.00410550
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4