Function at 0x401480
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
xor eax, eax
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
mov ecx, 0x11
sub esp, 0x78
mov esi, dword [0x4be4f8]
lea edx, [ebp - 0x5c]
mov edi, edx
rep stosd dword es:[edi], eax
test esi, esi
jne 0x401410
mov eax, dword fs:[0x18]
xor esi, esi
mov ebx, dword [eax + 4]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4011b7
cmp eax, ebx
je 0x4013b1
mov dword [esp], 0x3e8
call edi
sub esp, 4
mov eax, esi
lock cmpxchg dword [0x4be17c], ebx
test eax, eax
jne 0x4011a3
mov eax, dword [0x4be180]
xor ebx, ebx
cmp eax, 1
je 0x4013c4
mov eax, dword [0x4be180]
test eax, eax
je 0x401421
mov dword [0x4be154], 1
mov eax, dword [0x4be180]
cmp eax, 1
je 0x4013de
test ebx, ebx
je 0x401404
mov eax, dword [entry1]
test eax, eax
je 0x401227
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0
call eax
sub esp, 0xc
call fcn.00402470
mov dword [esp], 0x4026d0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
sub esp, 4
mov dword [esp], section..text
mov dword [0x4be50c], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.00402290
mov dword [0x4be170], 0x400000
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p__acmdln
mov eax, dword [eax]
test eax, eax
je 0x4012a9
xor ecx, ecx
jmp 0x401280
test dl, dl
je 0x4012a4
test ecx, ecx
je 0x401299
mov ecx, 1
add eax, 1
movzx edx, byte [eax]
cmp dl, 0x20
jle 0x401270
mov ebx, ecx
xor ebx, 1
cmp dl, 0x22
cmove ecx, ebx
jmp 0x40127d
test dl, dl
je 0x4012a4
add eax, 1
movzx edx, byte [eax]
cmp dl, 0x20
jle 0x401295
mov dword [0x4be174], eax
mov ebx, dword [0x4be4f8]
test ebx, ebx
je 0x4012c8
movzx edx, word [ebp - 0x2c]
mov eax, 0xa
test byte [ebp - 0x30], 1
cmovne eax, edx
mov dword [section..data], eax
mov eax, dword [0x4be16c]
mov esi, eax
mov dword [ebp - 0x70], eax
lea eax, [eax*4 + 4]
mov dword [esp], eax
mov dword [ebp - 0x74], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test esi, esi
mov edi, dword [0x4be168]
mov dword [ebp - 0x6c], eax
jle 0x401444
xor ebx, ebx
mov esi, edi
lea esi, [esi]
mov eax, dword [esi + ebx*4]
mov dword [esp], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea edi, [eax + 1]
mov dword [esp], edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + ebx*4], eax
mov ecx, dword [esi + ebx*4]
add ebx, 1
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp ebx, dword [ebp - 0x70]
jne 0x401300
mov eax, dword [ebp - 0x74]
sub eax, 4
mov esi, dword [ebp - 0x6c]
mov dword [esi + eax], 0
mov dword [0x4be168], esi
call fcn.00401f40
mov eax, dword [0x4be060]
mov edx, dword [0x4be164]
mov dword [eax], edx
mov eax, dword [0x4be164]
mov dword [esp + 8], eax
mov eax, dword [0x4be168]
mov dword [esp + 4], eax
mov eax, dword [0x4be16c]
mov dword [esp], eax
call main
mov ecx, dword [0x4be158]
test ecx, ecx
mov dword [0x4be15c], eax
je 0x40144b
mov edx, dword [0x4be154]
test edx, edx
jne 0x4013a5
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x4be15c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [0x4be180]
mov ebx, 1
cmp eax, 1
jne 0x4011d5
mov dword [esp], 0x1f
call fcn.00402960
mov eax, dword [0x4be180]
cmp eax, 1
jne 0x4011fa
mov dword [esp + 4], 0x4bb194
mov dword [esp], 0x4bb18c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
test ebx, ebx
mov dword [0x4be180], 2
jne 0x401202
xchg dword [0x4be17c], ebx
jmp 0x401202
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
sub esp, 4
jmp 0x401190
mov dword [esp + 4], 0x4bb1ac
mov dword [esp], 0x4bb1a0
mov dword [0x4be180], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x4011ec
xor eax, eax
jmp 0x40133d
mov dword [esp], eax
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
lea esi, [esi]
lea edi, [edi]
sub esp, 0xc
mov dword [0x4be4f8], 1
call fcn.00401f80
add esp, 0xc
jmp 0x401160
sub esp, 0xc
mov dword [0x4be4f8], 0
call fcn.00401f80
add esp, 0xc
jmp 0x401160