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 [0xae6658]
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 [0xae6634], edi
test eax, eax
jne 0x4011a8
mov eax, dword [0xae6638]
xor ebx, ebx
cmp eax, 1
je 0x4013e3
mov eax, dword [0xae6638]
test eax, eax
je 0x401460
mov dword [0xae4010], 1
mov eax, dword [0xae6638]
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.007893e0
mov dword [esp], 0x789750
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
sub esp, 4
mov dword [0xae6670], eax
mov dword [esp], section..text
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.00789210
mov dword [0xae4008], 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 [0xae4004], eax
mov ebx, dword [0xae6658]
test ebx, ebx
je 0x4012db
mov eax, 0xa
test byte [ebp - 0x30], 1
jne 0x4013c0
mov dword [section..data], eax
mov esi, dword [0xae4024]
lea edi, [esi*4 + 4]
mov dword [esp], edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov ebx, dword [0xae4020]
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 [0xae4020], ecx
call fcn.00789060
mov eax, dword [0xae401c]
mov edx, dword [0x8c44c4]
mov dword [edx], eax
mov dword [esp + 8], eax
mov eax, dword [0xae4020]
mov dword [esp + 4], eax
mov eax, dword [0xae4024]
mov dword [esp], eax
call fcn.008bb810
mov ecx, dword [0xae4014]
mov dword [0xae4018], eax
test ecx, ecx
je 0x40148a
mov edx, dword [0xae4010]
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 [0xae6638]
mov ebx, 1
cmp eax, 1
jne 0x4011da
mov dword [esp], 0x1f
call fcn.00788a20
mov eax, dword [0xae6638]
cmp eax, 1
jne 0x4011ff
mov dword [esp + 4], 0xaeb008
mov dword [esp], section..CRT
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0xae6638], 2
test ebx, ebx
jne 0x401207
xchg dword [0xae6634], 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 [0xae4018]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [0xae6638], 1
mov dword [esp + 4], 0xaeb014
mov dword [esp], 0xaeb00c
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 [0xae6658], 1
jmp 0x401160