Function at 0x3000106c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x300011c0
call fcn.300011cc
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, sym.imp.KERNEL32.dll_GetModuleHandleA
call edi
cmp word [eax], 0x5a4d
jne 0x30001393
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x30001393
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
jne 0x300013b2
cmp dword [ecx + 0x74], 0xe
jbe 0x30001393
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 [0x30002028], 0xffffffff
or dword [0x3000202c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x30002020]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x3000201c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x30002024], eax
call fcn.30001207
call fcn.30001255
cmp dword [0x30002010], ebx
je 0x300013cf
call fcn.30001256
push 0x3000200c
push 0x30002008
call sub.MSVCRT.dll__initterm
push 0x3000132e
call fcn.30001274
mov eax, dword [0x30002018]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x30002014]
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 0x300013e0
push 0x30002004
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
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
jbe 0x30001299
cmp al, 0x22
je 0x3000139b
movzx eax, al
push eax
call dword [sym.imp.MSVCRT.dll__ismbblead]
pop ecx
test eax, eax
jne 0x300013f5
inc esi
jmp 0x30001190
cmp al, bl
jne 0x3000136c
mov al, byte [esi]
cmp al, bl
jne 0x3000137a
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x3000138b
movzx eax, word [ebp - 0x54]
push eax
push esi
push ebx
push ebx
call edi
push eax
call 0x300012ea
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x300013ed
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 0x3000130b
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 0x300013ab
pop esi
ret 0x10
cmp dword [ebp - 0x20], ebx
je 0x300012a1
jmp 0x3000119d
cmp al, 0x20
ja 0x300012ab
inc esi
mov dword [ebp - 0x24], esi
jmp 0x300012a1
push 0xa
pop eax
jmp 0x300012c9
mov dword [ebp - 0x1c], ebx
jmp 0x300010c9
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
jmp 0x300011a5
mov eax, esi
jmp 0x30001318
cmp eax, 0x20b
jne 0x30001393
cmp dword [ecx + 0x84], 0xe
jbe 0x30001393
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x300010c3
push 0x300014a4
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
jmp 0x30001121
push 8
call sub.MSVCRT.dll__amsg_exit
pop ecx
jmp 0x30001171
call dword [sym.imp.MSVCRT.dll__cexit]
jmp 0x3000142b
inc esi
mov dword [ebp - 0x24], esi
jmp 0x300011b8
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.30001244
ret