Function at 0x412872
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
sub esp, 0x44
push dword [ebp + 8]
call fcn.0041e3d6
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
xchg edx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
xchg edx, eax
cmp eax, edx
jne 0x4128be
mov eax, 3
xchg edx, eax
mov eax, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
jmp 0x412ef8
mov eax, 1
mov dword [ebp - 0x34], 1
xor eax, eax
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp + 0x24]
mov edx, dword [0x422250]
cmp eax, edx
jbe 0x4128ec
mov eax, dword [ebp + 0x24]
mov eax, dword [eax + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [0x422250]
cmp eax, edx
jbe 0x4129ef
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 7
jne 0x41295b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
cmp eax, 0
jg 0x412937
mov eax, 3
xchg edx, eax
mov eax, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
jmp 0x412ef8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
xchg edx, eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
xchg edx, eax
xchg edx, eax
shl eax, 4
add eax, edx
sub eax, 0x10
jmp 0x4129e2
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
and eax, 0xff
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xff
pop edx
xchg edx, eax
cmp eax, edx
jne 0x412996
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
xchg edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
xchg edx, eax
cmp eax, edx
jne 0x412996
jmp 0x41299a
xor eax, eax
jmp 0x41299d
xor eax, eax
inc eax
xor al, 1
cmp eax, 0
je 0x4129c8
push 0
push 0x425b12
push 6
push 0xc
lea esi, [esp + 4]
push esi
push 1
call fcn.0040ebbd
push 0
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
xchg edx, eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
xchg edx, eax
xchg edx, eax
shl eax, 4
add eax, edx
mov dword [ebp + 0x10], eax
xor eax, eax
inc eax
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
and eax, 0xff
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
cmp eax, 0
je 0x412a10
mov eax, 0
jmp 0x412ac6
mov eax, dword [ebp - 0x44]
cmp eax, 5
je 0x412a50
mov eax, dword [ebp - 0x44]
cmp eax, 0x18
je 0x412a50
mov eax, dword [ebp - 0x44]
cmp eax, 0x14
je 0x412a50
mov eax, dword [ebp - 0x44]
cmp eax, 0x17
je 0x412a50
mov eax, dword [ebp - 0x44]
cmp eax, 0x16
je 0x412a50
mov eax, dword [ebp - 0x44]
cmp eax, 0x15
je 0x412a50
xor eax, eax
jmp 0x412a53
xor eax, eax
inc eax
cmp eax, 0
je 0x412ac1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
xchg edx, eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
xchg edx, eax
xchg edx, eax
shl eax, 4
add eax, edx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
xchg edx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
xchg edx, eax
sub eax, edx
sar eax, 4
push eax
pop edx
xchg edx, eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
xchg edx, eax
sub eax, edx
jmp 0x412ac6
mov eax, 0
mov dword [ebp - 0x30], eax
mov eax, 0
mov edx, dword [ebp - 0x30]
cmp eax, edx
jle 0x412ae1
mov eax, 0
mov dword [ebp - 0x30], 0
mov eax, dword [ebp + 0x28]
cmp eax, 0
je 0x412b29
mov eax, 0
mov edx, dword [ebp - 0x34]
sub eax, edx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x3c]
cmp eax, 0
je 0x412b07
mov eax, dword [ebp + 0x10]
jmp 0x412b15
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
sub eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
jmp 0x412bee
mov eax, dword [ebp + 0x2c]
cmp eax, 0
je 0x412b9c
mov eax, 0
mov edx, dword [ebp - 0x34]
sub eax, edx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x3c]
cmp eax, 0
je 0x412b4f
mov eax, dword [ebp + 0x10]
jmp 0x412b6e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
xchg edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
xchg edx, eax
xchg edx, eax
shl eax, 4
add eax, edx
sub eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp eax, edx
jae 0x412b9a
mov eax, 3
xchg edx, eax
mov eax, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
jmp 0x412ef8
jmp 0x412bee
xor eax, eax
inc eax
je 0x412be0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
xchg edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
xchg edx, eax
xchg edx, eax
shl eax, 4
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x3c]
cmp eax, 0
je 0x412bd2
mov eax, dword [ebp + 0x10]
add eax, 0x10
jmp 0x412bdb
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x412bee
call fcn.00412be5