Function at 0x408cdc
Capabilities:
Terminate process

Disassembly:
sub esp, 0x148
push ebp
mov ebp, dword [esp + 0x154]
push edi
mov edi, eax
mov eax, dword [esp + 0x154]
call fcn.0040772c
test eax, eax
je 0x408d0b
pop edi
mov eax, 1
pop ebp
add esp, 0x148
ret
mov eax, dword [0x44205c]
push 0
push 0x401120
push 0x401130
push 0
push 0
push 0x10
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0040c13c
add esp, 0x20
test al, al
je 0x408d3b
push 4
call fcn.00429194
push esi
push 0x400
push 0x100
lea edx, [esp + 0x14]
push 0x4372a4
push edx
call fcn.0040cc8c
add esp, 0x10
test edi, edi
jle 0x408e51
mov ecx, dword [ebp]
lea eax, [esp + 0x54]
push 0x40
push eax
call fcn.0040528c
add esp, 8
test eax, eax
jne 0x408e10
mov al, byte [0x442052]
test al, al
je 0x408deb
mov eax, dword [0x51c3a4]
mov dl, byte [esp + 0x54]
and eax, 0x47c
neg eax
sbb al, al
and al, 0xc2
add al, 0x60
test dl, dl
lea esi, [esp + 0x54]
mov byte [esp + 0x94], al
lea ecx, [esp + 0x95]
je 0x408dc1
cmp dl, al
jne 0x408db6
mov byte [ecx], al
inc ecx
mov byte [ecx], dl
mov dl, byte [esi + 1]
inc ecx
inc esi
test dl, dl
jne 0x408daf
mov byte [ecx], al
mov byte [ecx + 1], 0
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.0040ceac
lea eax, [esp + 0x14]
push 0x437288
push eax
call fcn.0040ceac
add esp, 0x10
lea ecx, [esp + 0x54]
push 0
push ecx
call fcn.0040c0ec
push eax
lea edx, [esp + 0x28]
push edx
call fcn.0040c2ec
add esp, 0x10
test al, al
je 0x408e45
push 4
call fcn.00429194
mov eax, dword [ebp]
push eax
push 0
push 0x4372dc
push 0
call fcn.0040c8ac
mov eax, dword [0x51c3b4]
add esp, 0x10
test eax, eax
jne 0x408e38
mov dword [0x51c3b4], 6
mov al, byte [0x51c34f]
test al, al
je 0x408fd6
dec edi
add ebp, 4
test edi, edi
jg 0x408d60
mov al, byte [0x442052]
test al, al
je 0x408e84
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [case.0x6502ec.0]
dec ecx
push ecx
push edx
push eax
call fcn.004110ac
test eax, eax
je 0x408e84
mov esi, dword [case.0x6502ec.0]
mov eax, 0x4372c4
call fcn.004061fc
lea ecx, [esp + 0xc]
push ecx
call fcn.0040ce8c
mov al, byte [0x51c350]
add esp, 4
test al, al
je 0x408ebc
mov edx, dword [case.0x6502ec.0]
push 2
push edx
call fcn.004135ac
test eax, eax
je 0x408ebc
mov esi, dword [case.0x6502ec.0]
mov eax, 0x43725c
call fcn.004061fc
mov al, byte [0x51c35b]
test al, al
je 0x408ee9
mov edi, dword [esp + 0x158]
mov ecx, dword [0x51d678]
push 0x436570
push 0x4372b4
mov eax, 0x435d58
call fcn.0040659c
add esp, 8
mov eax, dword [esp + 0x24]
xor ebp, ebp
test eax, eax
jbe 0x408f33
lea eax, [esp + 0x1c]
push ebp
push eax
call fcn.0040c59c
mov ecx, dword [esp + 0x160]
mov esi, eax
push ecx
push esi
call fcn.00407aec
mov cl, byte [0x51c34e]
add esp, 0x10
test cl, cl
jne 0x408f2a
test eax, eax
jbe 0x408f2a
push eax
mov eax, esi
call fcn.0040685c
add esp, 4
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jb 0x408ef3
lea edx, [esp + 0x1c]
push edx
call fcn.0040c1ec
mov eax, dword [0x51c398]
push eax
call fcn.0040c08c
mov al, byte [0x51c35b]
add esp, 8
test al, al
mov dword [0x51c398], 0
je 0x408fec
mov ecx, dword [0x51d678]
push ecx
push 0x43724c
call fcn.004294cd
mov edx, dword [0x51d678]
mov al, byte [edx + 0xc]
add esp, 8
test al, 0x20
je 0x408fec
call fcn.00429448
mov eax, dword [eax]
mov ecx, dword [0x51c3d4]
push eax
push ecx
push 0x436254
push 0x51ae68
call fcn.004291d4
mov eax, dword [0x51c3b4]
add esp, 0x10
test eax, eax
jne 0x408fb7
mov dword [0x51c3b4], 5
mov al, byte [0x51c34f]
test al, al
jne 0x408fec
mov eax, dword [case.0x6502ec.0]
test eax, eax
je 0x408fcf
push eax
call fcn.00410f2c
push 5
call fcn.00429194
mov eax, dword [case.0x6502ec.0]
test eax, eax
je 0x408fe5
push eax
call fcn.00410f2c
push 6
call fcn.00429194
mov al, byte [0x442052]
test al, al
je 0x409035
mov esi, dword [case.0x6502ec.0]
push 0x436080
push esi
call fcn.0041330c
test eax, eax
je 0x409035
push esi
call fcn.004115dc
push eax
push esi
call fcn.004115ec
mov edx, dword [0x51c3d4]
push eax
push 0x436080
push edx
push 0
push 0x435ff0
push 0
call fcn.0040c8ac
add esp, 0x1c
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 0x148
ret