Function at 0x4014a0
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
xor eax, eax
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x5c]
push ebx
mov edi, edx
push ecx
mov ecx, 0x11
sub esp, 0x78
mov esi, dword [0xa98644]
rep stosd dword es:[edi], eax
test esi, esi
jne 0x401430
mov eax, dword fs:[0x18]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [eax + 4]
xor ebx, ebx
jmp 0x4011bc
cmp edi, eax
je 0x4013d0
mov dword [esp], 0x3e8
call esi
sub esp, 4
mov eax, ebx
lock cmpxchg dword [0xa98620], edi
test eax, eax
jne 0x4011a8
mov eax, dword [0xa98624]
xor ebx, ebx
cmp eax, 1
je 0x4013e3
mov eax, dword [0xa98624]
test eax, eax
je 0x401460
mov dword [0xa96010], 1
mov eax, dword [0xa98624]
cmp eax, 1
je 0x4013fd
test ebx, ebx
je 0x401423
mov eax, dword [entry1]
test eax, eax
je 0x40122c
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0
call eax
sub esp, 0xc
call fcn.00787380
mov dword [esp], 0x7876f0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
sub esp, 4
mov dword [0xa9865c], eax
mov dword [esp], section..text
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.007871b0
mov dword [0xa96008], 0x400000
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p__acmdln
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
jne 0x401281
jmp 0x4012bd
test dl, dl
je 0x4012b8
and ecx, 1
je 0x4012a0
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 0x40127e
test dl, dl
je 0x4012b8
lea esi, [esi]
movzx edx, byte [eax + 1]
add eax, 1
test dl, dl
je 0x4012b8
cmp dl, 0x20
jle 0x4012a8
mov dword [0xa96004], eax
mov ebx, dword [0xa98644]
test ebx, ebx
je 0x4012db
mov eax, 0xa
test byte [ebp - 0x30], 1
jne 0x4013c0
mov dword [section..data], eax
mov esi, dword [0xa96024]
lea edi, [esi*4 + 4]
mov dword [esp], edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov ebx, dword [0xa96020]
mov ecx, eax
test esi, esi
jle 0x401483
lea edx, [edi - 4]
mov esi, eax
mov dword [ebp - 0x70], ecx
lea eax, [ebx + edx]
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x6c], eax
lea esi, [esi]
mov eax, dword [ebx]
add esi, 4
add 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 dword [esi - 4], eax
mov ecx, dword [ebx - 4]
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp dword [ebp - 0x6c], ebx
jne 0x401318
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x74]
add edx, ecx
mov dword [edx], 0
mov dword [0xa96020], ecx
call fcn.00787000
mov eax, dword [0xa9601c]
mov edx, dword [0x868324]
mov dword [edx], eax
mov dword [esp + 8], eax
mov eax, dword [0xa96020]
mov dword [esp + 4], eax
mov eax, dword [0xa96024]
mov dword [esp], eax
call fcn.00861a10
mov ecx, dword [0xa96014]
mov dword [0xa96018], eax
test ecx, ecx
je 0x40148a
mov edx, dword [0xa96010]
test edx, edx
je 0x401448
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
movzx eax, word [ebp - 0x2c]
jmp 0x4012d6
mov eax, dword [0xa98624]
mov ebx, 1
cmp eax, 1
jne 0x4011da
mov dword [esp], 0x1f
call fcn.00786a20
mov eax, dword [0xa98624]
cmp eax, 1
jne 0x4011ff
mov dword [esp + 4], 0xa9d008
mov dword [esp], section..CRT
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0xa98624], 2
test ebx, ebx
jne 0x401207
xchg dword [0xa98620], ebx
jmp 0x401207
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
sub esp, 4
jmp 0x401190
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0xa96018]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [0xa98624], 1
mov dword [esp + 4], 0xa9d014
mov dword [esp], 0xa9d00c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x4011f1
mov edx, eax
jmp 0x401356
mov dword [esp], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
lea esi, [esi]
lea esi, [esi]
mov dword [0xa98644], 1
jmp 0x401160