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 [0x5aad18]
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 [0x5aa9b0], ebx
test eax, eax
jne 0x4011a3
mov eax, dword [0x5aa9b4]
xor ebx, ebx
cmp eax, 1
je 0x4013c4
mov eax, dword [0x5aa9b4]
test eax, eax
je 0x401421
mov dword [0x5aa2d0], 1
mov eax, dword [0x5aa9b4]
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.00428090
mov dword [esp], 0x4282f0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
sub esp, 4
mov dword [esp], section..text
mov dword [0x5aad2c], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.00427eb0
mov dword [0x5aa2ec], 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 [0x5aa2f0], eax
mov ebx, dword [0x5aad18]
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 [0x5aa2e8]
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 [0x5aa2e4]
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 [0x5aa2e4], esi
call fcn.00427b60
mov eax, dword [0x5aa0f0]
mov edx, dword [0x5aa2e0]
mov dword [eax], edx
mov eax, dword [0x5aa2e0]
mov dword [esp + 8], eax
mov eax, dword [0x5aa2e4]
mov dword [esp + 4], eax
mov eax, dword [0x5aa2e8]
mov dword [esp], eax
call main
mov ecx, dword [0x5aa2d4]
test ecx, ecx
mov dword [0x5aa2d8], eax
je 0x40144b
mov edx, dword [0x5aa2d0]
test edx, edx
jne 0x4013a5
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x5aa2d8]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [0x5aa9b4]
mov ebx, 1
cmp eax, 1
jne 0x4011d5
mov dword [esp], 0x1f
call fcn.00428530
mov eax, dword [0x5aa9b4]
cmp eax, 1
jne 0x4011fa
mov dword [esp + 4], 0x59f2c4
mov dword [esp], 0x59f2bc
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
test ebx, ebx
mov dword [0x5aa9b4], 2
jne 0x401202
xchg dword [0x5aa9b0], ebx
jmp 0x401202
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
sub esp, 4
jmp 0x401190
mov dword [esp + 4], 0x59f2dc
mov dword [esp], 0x59f2d0
mov dword [0x5aa9b4], 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 [0x5aad18], 1
call fcn.00427ba0
add esp, 0xc
jmp 0x401160
sub esp, 0xc
mov dword [0x5aad18], 0
call fcn.00427ba0
add esp, 0xc
jmp 0x401160