Function at 0x4061e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
push edi
mov dword [ebp - 0x174], 0x104
mov dword [ebp - 0x150], 0
mov ecx, 0x4f
xor eax, eax
lea edi, [ebp - 0x14c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x170], 0
mov dword [ebp - 4], 0
mov eax, dword [0x41820c]
mov dword [ebp - 0x16c], eax
mov ecx, dword [0x418210]
mov dword [ebp - 0x168], ecx
mov dx, word [0x418214]
mov word [ebp - 0x164], dx
mov al, byte [0x418216]
mov byte [ebp - 0x162], al
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
lea edx, [ebp - 0x15c]
push edx
push 1
push 0
push 0x418218
push 0x80000002
call dword [0x413038]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
jne 0x40649b
lea eax, [ebp - 8]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x418240
mov edx, dword [ebp - 0x15c]
push edx
call dword [0x41303c]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
je 0x4062db
mov eax, dword [ebp - 0x15c]
push eax
call dword [0x413040]
push 0
push 0
push 0x418248
lea ecx, [ebp - 0x16c]
push ecx
call fcn.0040a540
add esp, 0x10
xor eax, eax
jmp 0x4064ba
mov edx, dword [ebp - 8]
push edx
call fcn.0040b8eb
add esp, 4
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x406325
push 1
push 0xa7d
push 0x418288
lea eax, [ebp - 0x16c]
push eax
call fcn.0040a540
add esp, 0x10
mov ecx, dword [ebp - 0x15c]
push ecx
call dword [0x413040]
push 1
call fcn.0040b5f8
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x154]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x4182d4
mov edx, dword [ebp - 0x15c]
push edx
call dword [0x41303c]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
je 0x406392
mov eax, dword [ebp - 0x154]
push eax
call fcn.0040ab68
add esp, 4
mov ecx, dword [ebp - 0x15c]
push ecx
call dword [0x413040]
push 0
push 0
push 0x4182e0
lea edx, [ebp - 0x16c]
push edx
call fcn.0040a540
add esp, 0x10
xor eax, eax
jmp 0x4064ba
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 0x158], eax
xor ecx, ecx
cmp dword [ebp - 0xc], 3
setne cl
dec ecx
and ecx, 0xffffff00
add ecx, 0x200
cmp dword [ebp - 0x158], ecx
jge 0x4063ca
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x178], edx
jmp 0x4063e4
xor eax, eax
cmp dword [ebp - 0xc], 3
setne al
dec eax
and eax, 0xffffff00
add eax, 0x200
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x174]
cmp edx, dword [ebp - 8]
ja 0x406441
mov eax, dword [ebp - 0x174]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x154]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040aee0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x174]
mov byte [eax - 1], 0
push 0
mov ecx, dword [ebp - 0x154]
push ecx
push 0x418328
lea edx, [ebp - 0x16c]
push edx
call fcn.0040a540
add esp, 0x10
jmp 0x406454
mov eax, dword [ebp - 0x154]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040acf0
add esp, 8
mov edx, dword [ebp - 0x154]
push edx
call fcn.0040ab68
add esp, 4
mov eax, dword [ebp - 0x15c]
push eax
call dword [0x413040]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
je 0x40649b
push 0
push 0
push 0x418344
lea ecx, [ebp - 0x16c]
push ecx
call fcn.0040a540
add esp, 0x10
xor eax, eax
jmp 0x4064ba
push 0
mov edx, dword [ebp + 8]
push edx
push 0x418380
lea eax, [ebp - 0x16c]
push eax
call fcn.0040a540
add esp, 0x10
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret