Function at 0x1004d805
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push esi
movzx eax, byte [ebp + 0x44]
test eax, eax
je 0x1004d8a2
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0x3c]
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x34]
mov dword [ebp - 0x60], eax
lea eax, [ebp + 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
test eax, eax
je 0x1004d874
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
dec eax
not eax
mov ecx, dword [ebp - 0x48]
and eax, dword [ecx]
mov ecx, dword [ebp - 0x80]
mov dword [ecx], eax
jmp 0x1004da6d
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x1004d89d
push 0x16cd
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1004da6d
lea eax, [ebp + 0x38]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x88]
movzx eax, byte [eax]
test eax, eax
je 0x1004da4c
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x84]
mov eax, dword [eax]
mov dword [ebp - 0xb4], eax
mov eax, 0xaead
test eax, eax
je 0x1004d998
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x1004d998
mov dword [ebp - 8], 1
jmp 0x1004d99c
and dword [ebp - 8], 0
cmp dword [ebp - 8], 0xa5c1
jle 0x1004d9ae
mov dword [ebp - 0x28], 1
jmp 0x1004d9b2
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
jg 0x1004d9c5
mov dword [ebp - 0x20], 1
jmp 0x1004d9c9
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
imul ecx, dword [ebp - 0x20]
cmp dword [eax], ecx
jge 0x1004d9e5
mov dword [ebp - 4], 1
jmp 0x1004d9e9
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10021a50
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax]
jge 0x1004da06
mov dword [ebp - 0x14], 1
jmp 0x1004da0a
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
mov eax, dword [ebp - 0x24]
imul esi, dword [eax]
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10021a50
mov ecx, dword [ebp - 0x14]
sub ecx, dword [eax]
cmp esi, ecx
je 0x1004da31
mov dword [ebp - 0x1c], 1
jmp 0x1004da35
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x1004da6d
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
and dword [eax], 0
pop esi
mov esp, ebp
pop ebp
ret