Function at 0x403360
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8c
push ebx
push esi
push edi
mov dword [ebp - 0x64], 0
mov eax, dword [0x40ad94]
push eax
call fcn.004023c0
add esp, 4
mov dword [ebp - 0x68], eax
mov eax, dword [sym.imp.ntdll.dll_NtRaiseHardError]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x68]
push eax
call fcn.00401250
add esp, 4
mov byte [ebp - 0x6d], al
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00401250
add esp, 4
mov byte [ebp - 0x6e], al
movzx eax, byte [ebp - 0x6d]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [0x40ad8c]
push edx
mov eax, dword [0x40ad88]
push eax
push str._KE_ProcId_lu__ThreadId_lu__tProcess_entry_point:_0x_p__Original_byte:_0x_02X_r_n
call fcn.00401400
add esp, 0x14
push 0xcc
mov eax, dword [ebp - 0x68]
push eax
call fcn.00401100
add esp, 8
movzx eax, byte [ebp - 0x6e]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [0x40ad8c]
push edx
mov eax, dword [0x40ad88]
push eax
push str._KE_ProcId_lu__ThreadId_lu__tAdding_hard_error_handler_at_0x_p._Original_byte:_0x_02X_r_n
call fcn.00401400
add esp, 0x14
push 0xcc
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00401100
add esp, 8
mov eax, dword [0x40ad88]
mov dword [ebp - 0x5c], eax
mov eax, dword [0x40ad8c]
mov dword [ebp - 0x58], eax
mov eax, 1
test eax, eax
je 0x403956
cmp dword [ebp - 0x64], 0
jne 0x40344c
push 0
mov eax, dword [0x40a0a8]
push eax
call dword [sym.imp.ntdll.dll_NtResumeThread]
mov dword [ebp - 0x64], 1
jmp 0x40345f
push 0x80010001
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
push 0xffffffffffffffff
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
cmp dword [ebp - 0x60], 3
jne 0x4034a5
mov eax, dword [ebp - 0x5c]
push eax
push str._CP_ProcId_lu__t_tProcess_created._r_n
call fcn.00401400
add esp, 8
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x403951
cmp dword [ebp - 0x60], 6
jne 0x403519
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x4034cc
mov eax, dword [ebp - 0x74]
push eax
call fcn.00405150
add esp, 4
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x4034d1
jmp 0x403422
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
push str._LD_ProcId_lu__ThreadId_lu__tDLL_loaded:__s_r_n
call fcn.00401400
add esp, 0x10
mov eax, dword [ebp - 0x78]
push eax
call fcn.00402890
add esp, 4
test eax, eax
je 0x403514
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.00402510
add esp, 8
jmp 0x403951
cmp dword [ebp - 0x60], 7
jne 0x40353d
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
push str._UL_ProcId_lu__ThreadId_lu__tThe_DLL_at__p_was_unloaded._r_n
call fcn.00401400
add esp, 0x10
jmp 0x403951
cmp dword [ebp - 0x60], 5
jne 0x40357d
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
push str._EP_ProcId_lu__t_tAttached_process_has_exited__code__010I32x_._r_n
call fcn.00401400
add esp, 0xc
mov eax, dword [ebp - 0x7c]
cmp eax, dword [0x40ad88]
jne 0x403578
mov eax, dword [ebp - 0x80]
push eax
call fcn.00401530
jmp 0x403951
cmp dword [ebp - 0x60], 1
jne 0x403678
cmp dword [ebp - 0x54], 0x80000003
je 0x40359d
cmp dword [ebp - 0x54], 0x4000001f
jne 0x403678
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x68]
jne 0x403678
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
push str._KE_ProcId_lu__ThreadId_lu__tProcess_has_finished_loading._r_n
call fcn.00401400
add esp, 0xc
cmp dword [section..data], 0
je 0x4035c9
jmp 0x40360a
mov dword [ebp - 0x34c], 0x10001
lea eax, [ebp - 0x34c]
push eax
mov ecx, dword [0x40a0a8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [ebp - 0x294]
sub eax, 1
mov dword [ebp - 0x294], eax
lea eax, [ebp - 0x34c]
push eax
mov ecx, dword [0x40a0a8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
movzx eax, byte [ebp - 0x6d]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00401100
add esp, 8
call fcn.004029e0
push 0x10002
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
cmp dword [0x40a95c], 0
jne 0x403673
movzx eax, byte [ebp - 0x6e]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00401100
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_DebugSetProcessKillOnExit]
mov eax, dword [0x40ad88]
push eax
call dword [sym.imp.KERNEL32.dll_DebugActiveProcessStop]
push str._KE__Detached_from_process._r_n
call fcn.00401400
add esp, 4
jmp 0x403956
jmp 0x403951
cmp dword [ebp - 0x60], 1
jne 0x40371c
cmp dword [ebp - 0x54], 0x80000003
je 0x403698
cmp dword [ebp - 0x54], 0x4000001f
jne 0x40371c
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x6c]
jne 0x40371c
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
push str._HE_ProcId_lu__ThreadId_lu__tHard_Error_has_been_raised._r_n
call fcn.00401400
add esp, 0xc
lea eax, [ebp - 0xa34]
push eax
lea ecx, [ebp - 0x82c]
push ecx
mov edx, dword [ebp - 0xa38]
push edx
mov eax, dword [ebp - 0x624]
push eax
call fcn.004032f0
add esp, 0x10
mov eax, dword [ebp - 0x5c]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x620], eax
cmp dword [ebp - 0x620], 0
je 0x403717
push str._KE__Terminating_process.
call fcn.00401400
add esp, 4
push 0
mov eax, dword [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x403956
jmp 0x403951
cmp dword [ebp - 0x60], 8
jne 0x40382d
mov dword [ebp - 0xa3c], 0
movzx eax, word [ebp - 0x4e]
cmp eax, 0x400
jge 0x403747
movzx ecx, word [ebp - 0x4e]
mov dword [ebp - 0xa88], ecx
jmp 0x403751
mov dword [ebp - 0xa88], 0x400
mov edx, dword [ebp - 0xa88]
mov dword [ebp - 0xa40], edx
mov eax, dword [ebp - 0xa40]
call sub.ntdll.dll__alloca_probe_16
mov dword [ebp - 0xa88], esp
mov eax, dword [ebp - 0xa88]
mov dword [ebp - 0xa44], eax
mov eax, dword [0x40ad88]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x403795
mov eax, dword [0x40a0a4]
mov dword [ebp - 0xa3c], eax
jmp 0x4037b7
mov eax, dword [ebp - 0x5c]
push eax
push 0
push 0x10
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xa3c], eax
cmp dword [ebp - 0xa3c], 0
jne 0x4037b7
jmp 0x403422
push 0
mov eax, dword [ebp - 0xa40]
push eax
mov ecx, dword [ebp - 0xa44]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0xa3c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4037e1
jmp 0x403422
mov eax, dword [ebp - 0x5c]
cmp eax, dword [0x40ad88]
je 0x4037f9
mov eax, dword [ebp - 0xa3c]
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0xa44]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
push str._DS_ProcId_lu__ThreadId_lu__t_hs_r_n
call fcn.00401400
add esp, 0x10
push 0x10002
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
jmp 0x403951
cmp dword [ebp - 0x60], 1
jne 0x4038f6
cmp dword [ebp - 4], 0
je 0x403849
mov dword [ebp - 0xa88], str.First_chance_e
jmp 0x403873
mov eax, dword [ebp - 0x50]
and eax, 1
je 0x40385d
mov dword [ebp - 0xa8c], 0x407fac
jmp 0x403867
mov dword [ebp - 0xa8c], 0x407fa8
mov ecx, dword [ebp - 0xa8c]
mov dword [ebp - 0xa88], ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0xa88]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
push str._EX_ProcId_lu__ThreadId_lu__t_sxception_occurred_at_0x_p_r_n
call fcn.00401400
add esp, 0x14
mov eax, dword [ebp - 0x54]
push eax
call fcn.00404c30
add esp, 4
push eax
mov ecx, dword [ebp - 0x54]
push ecx
push str.____Exception_code:_0x_08x:__s
call fcn.00401400
add esp, 0xc
cmp dword [ebp - 0x54], 0xc0000005
jne 0x4038f4
cmp dword [ebp - 0x44], 2
jne 0x4038f4
cmp dword [ebp - 0x40], 0
je 0x4038d2
mov dword [ebp - 0xa88], str.write
jmp 0x4038dc
mov dword [ebp - 0xa88], str.read
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0xa88]
push ecx
push str.____Attempted_to__s_the_address_0x_p_r_n
call fcn.00401400
add esp, 0xc
jmp 0x403951
cmp dword [ebp - 0x60], 2
jne 0x403917
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
push str._TH_ProcId_lu__ThreadId_lu__tThread_created__starting_address:_0x_p__r_n
call fcn.00401400
add esp, 0x10
jmp 0x403951
cmp dword [ebp - 0x60], 4
jne 0x403938
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
push str._TH_ProcId_lu__ThreadId_lu__tThread_exited__exit_code:_0x_08I32x__r_n
call fcn.00401400
add esp, 0x10
jmp 0x403951
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
push str.____ProcId_lu__ThreadId_lu__tUnknown_debug_event_received:__lu_r_n
call fcn.00401400
add esp, 0x10
jmp 0x403422
lea esp, [ebp - 0xa98]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret