Function at 0x40a1e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [ebp - 0x98], ecx
push 0
push 0x3ef
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x98]
add ecx, 4
call fcn.0040fa80
mov ecx, eax
call fcn.0040fa60
push 0
push 0x3f0
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, dword [ebp - 0x98]
add ecx, 4
call fcn.0040fa80
mov ecx, eax
call fcn.0040fa60
mov edx, dword [ebp + 8]
add edx, 8
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, 0x60
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 8
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x14
mov dword [ebp - 4], edx
push 1
lea eax, [ebp - 0x10]
push eax
push 0x3ed
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x98]
add ecx, 4
call fcn.0040fa80
mov ecx, eax
call fcn.0040fab0
mov edx, dword [ebp - 8]
add edx, 8
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x28], edx
push 1
lea eax, [ebp - 0x34]
push eax
push 0x3ea
lea ecx, [ebp - 0x74]
push ecx
mov ecx, dword [ebp - 0x98]
add ecx, 4
call fcn.0040fa80
mov ecx, eax
call fcn.0040fab0
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x98]
call fcn.0040aaf0
lea ecx, [ebp - 0x24]
call fcn.00419850
push eax
push 0x3ea
mov ecx, dword [ebp - 0x98]
add ecx, 4
call fcn.0040fb40
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
add edx, 8
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
add eax, 0x14
mov dword [ebp - 0x14], eax
push 1
lea ecx, [ebp - 0x20]
push ecx
push 0x3ee
lea edx, [ebp - 0x78]
push edx
mov ecx, dword [ebp - 0x98]
add ecx, 4
call fcn.0040fa80
mov ecx, eax
call fcn.0040fab0
mov eax, dword [ebp - 0x18]
add eax, 8
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
push 1
lea ecx, [ebp - 0x54]
push ecx
push 0x3eb
lea edx, [ebp - 0x7c]
push edx
mov ecx, dword [ebp - 0x98]
add ecx, 4
call fcn.0040fa80
mov ecx, eax
call fcn.0040fab0
push 0
push 0x80
push 0xc5
push 0x3eb
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x98]
add ecx, 4
call fcn.0040fa80
mov ecx, eax
call fcn.0040fa30
mov ecx, dword [ebp - 0x54]
add ecx, 4
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
add edx, 0xa0
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x50]
add eax, 0x20
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
add ecx, 0x14
mov dword [ebp - 0x58], ecx
push 1
lea edx, [ebp - 0x64]
push edx
push 0x3ec
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x98]
add ecx, 4
call fcn.0040fa80
mov ecx, eax
call fcn.0040fab0
mov ecx, dword [ebp + 0x10]
sub ecx, 0x10
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
sub edx, 0x3c
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x48]
add eax, 8
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x24
mov dword [ebp - 0x38], ecx
push 1
lea edx, [ebp - 0x44]
push edx
push 2
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x98]
add ecx, 4
call fcn.0040fa80
mov ecx, eax
call fcn.0040fab0
mov ecx, dword [ebp - 0x98]
cmp dword [ecx + 0x1e4], 1
jle 0x40a46f
mov edx, dword [ebp - 0x44]
sub edx, 8
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
sub eax, 0x3c
mov dword [ebp - 0x44], eax
push 1
lea ecx, [ebp - 0x44]
push ecx
push 3
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x98]
add ecx, 4
call fcn.0040fa80
mov ecx, eax
call fcn.0040fab0
jmp 0x40a48f
push 0
push 3
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0x98]
add ecx, 4
call fcn.0040fa80
mov ecx, eax
call fcn.0040fa60
mov ecx, dword [ebp - 0x44]
sub ecx, 8
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
sub edx, 0x3c
mov dword [ebp - 0x44], edx
push 1
lea eax, [ebp - 0x44]
push eax
push 1
lea ecx, [ebp - 0x94]
push ecx
mov ecx, dword [ebp - 0x98]
add ecx, 4
call fcn.0040fa80
mov ecx, eax
call fcn.0040fab0
lea ecx, [ebp - 0x24]
call fcn.004052b0
movzx edx, al
test edx, edx
je 0x40a4e6
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x24]
call fcn.00443840
mov esp, ebp
pop ebp
ret 0x10