Function at 0x30001084
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x300011e0
call fcn.300011ec
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x30001423
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x30001423
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
jne 0x30001442
cmp dword [ecx + 0x74], 0xe
jbe 0x30001423
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x3000202c], 0xffffffff
or dword [0x30002030], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x30002024]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x30002020]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x30002028], eax
call fcn.30001227
call fcn.30001275
cmp dword [0x30002014], ebx
je 0x3000145f
call fcn.30001276
push 0x30002010
push 0x3000200c
call sub.MSVCRT.dll__initterm
push 0x300013c1
call fcn.30001294
mov eax, dword [0x3000201c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x30002018]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jl 0x30001470
push 0x30002008
push section..data
call sub.MSVCRT.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
jbe 0x3000132c
cmp al, 0x22
je 0x3000142b
movzx eax, al
push eax
call dword [sym.imp.MSVCRT.dll__ismbblead]
pop ecx
test eax, eax
jne 0x30001485
inc esi
jmp 0x300011b0
cmp al, bl
jne 0x300013fc
mov al, byte [esi]
cmp al, bl
jne 0x3000140a
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x3000141b
movzx eax, word [ebp - 0x54]
push eax
push esi
push ebx
push ebx
call edi
push eax
call 0x3000137d
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x3000147d
push esi
call dword [sym.imp.MSVCRT.dll_exit]
push esi
push 0
push dword [esp + 0x14]
or esi, 0xffffffff
push dword [esp + 0x1c]
call sub.OUTLLIB.dll_RenInitInstance_12
test eax, eax
je 0x3000139e
xor esi, esi
push esi
push esi
push esi
call sub.OUTLLIB.dll_FMessageLoop_12
call sub.OUTLLIB.dll_RenExitInstance_0
test esi, esi
jne 0x3000143b
pop esi
ret 0x10
cmp dword [ebp - 0x20], ebx
je 0x30001334
jmp 0x300011bd
cmp al, 0x20
ja 0x3000133e
inc esi
mov dword [ebp - 0x24], esi
jmp 0x30001334
push 0xa
pop eax
jmp 0x3000135c
mov dword [ebp - 0x1c], ebx
jmp 0x300010e1
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
jmp 0x300011c5
mov eax, esi
jmp 0x300013ab
cmp eax, 0x20b
jne 0x30001423
cmp dword [ecx + 0x84], 0xe
jbe 0x30001423
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x300010db
push 0x30001543
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
jmp 0x30001139
push 8
call sub.MSVCRT.dll__amsg_exit
pop ecx
jmp 0x30001189
call dword [sym.imp.MSVCRT.dll__cexit]
jmp 0x300014bb
inc esi
mov dword [ebp - 0x24], esi
jmp 0x300011d8
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.30001264
ret