Function at 0x4193a0
Capabilities:
Check if file exists
Copy file
Create process on windows
Delete file
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18b0
call fcn.00433e90
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x170]
push edi
push 0
push 0
push 0x48
push esi
call fcn.0040f250
push 0x740
lea eax, [ebp - 0x8b0]
push 0
push eax
call fcn.00438530
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0xac]
add esp, 0xc
mov dword [ebp - 0xac], 0
push eax
push 0x740
lea eax, [ebp - 0x8b0]
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x419436
push 0x740
push edi
push esi
push str.Failed_to_read_PID__ds_memory_at__p___d_bytes__n
call fcn.00401c40
add esp, 0x10
lea ecx, [ebp - 0x170]
mov esi, 0xfffffc81
call fcn.0040f4a0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x8b0]
mov eax, dword [ebp - 0x8ac]
cmp ecx, 0x79434803
jne 0x419e4d
cmp eax, 0x556e6974
jne 0x419e4d
mov eax, dword [ebp - 0x8a0]
cmp eax, 0x740
je 0x41947f
push eax
push 0x740
push esi
push str.Crash_data_sent_by_PID__d_is_corrupt:_expected_size__d_but_got__d_n
call fcn.00401c40
add esp, 0x10
jmp 0x419e67
mov eax, dword [ebp - 0x8a8]
cmp eax, esi
je 0x41949d
push eax
push esi
push str.Crash_data_sent_by_PID__d_is_corrupt:_expected_to_agree_on_PID_but_got__d_n
call fcn.00401c40
add esp, 0xc
jmp 0x419e67
xor eax, eax
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp + 0x14]
add eax, 0x2c
mov dword [ebp - 0x48], 7
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0041b570
add esp, 8
push eax
call fcn.00417fe0
add esp, 8
lea ecx, [ebp - 0xc4]
mov bl, al
call fcn.0040ec00
test bl, bl
jne 0x4194fe
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
push str.Couldnt_create_crash_dump_directory:__S_n
call fcn.00401c40
add esp, 8
push 0x800
lea eax, [ebp - 0x18b0]
push eax
push 0
push dword [ebp + 0xc]
call sub.PSAPI.DLL_GetModuleFileNameExW
call fcn.00429600
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 8], eax
cmp byte [ebx + 0xd4], 0
je 0x419582
mov ecx, dword [eax]
lea eax, [ebp - 0x78]
mov edi, dword [ecx]
lea ecx, [ebx + 0x74]
push ecx
push eax
call fcn.0041b570
mov esi, eax
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x419546
mov esi, dword [esi]
lea ecx, [ebx + 0x44]
push ecx
lea eax, [ebp - 0xc4]
push eax
call fcn.0041b570
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x419561
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x18b0]
push eax
call edi
lea ecx, [ebp - 0xc4]
call fcn.0040ec00
lea ecx, [ebp - 0x78]
call fcn.0040ec00
push str.error.log
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00412a60
push str.crash.dmp
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00412a60
push ebx
call fcn.00419e90
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x60], eax
add ecx, 0xbc
xor eax, eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x20], eax
xor edi, edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc4]
push ecx
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
call fcn.0041b570
mov esi, eax
add esp, 0x24
cmp dword [esi + 0x14], 8
jb 0x4195ed
mov esi, dword [esi]
mov dword [ebp - 0x10], ebx
test esi, esi
je 0x419639
cmp word [esi], bx
je 0x419639
push dword [ebp - 0x898]
push esi
push dword [ebp + 0xc]
call fcn.00429e70
add esp, 0xc
test eax, eax
jne 0x419631
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x419628
test al, 0x10
jne 0x419628
mov dword [ebp - 0x2c], 2
jmp 0x419640
mov dword [ebp - 0x2c], 3
jmp 0x419640
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], ebx
jmp 0x419640
mov dword [ebp - 0x2c], 1
lea ecx, [ebp - 0xc4]
call fcn.0040ec00
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x13c]
push esi
push eax
call fcn.00427680
lea ecx, [ebp - 0x13c]
call fcn.00410e60
lea ecx, [ebp - 0x13c]
call fcn.00424d70
mov ecx, dword [ebp - 8]
push 0x14
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp dword [ebp - 0x94], 8
lea eax, [ebp - 0x890]
mov ecx, dword [ebp - 0x8a4]
push 0
push 0x80000080
push 2
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0x840]
push 0
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xa8]
cmovae eax, dword [ebp - 0xa8]
push 0
push 0x40000000
push eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x419711
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00428b20
add esp, 0x10
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x419840
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
jle 0x419726
movzx ecx, cx
or ecx, 0x80070000
cmp dword [ebp - 0x94], 8
lea eax, [ebp - 0xa8]
push ecx
cmovae eax, dword [ebp - 0xa8]
push eax
push str.Failed_to_generate_minidump_at__S___x__n
call fcn.00401c40
add esp, 0xc
mov esi, dword [ebp - 8]
mov ecx, esi
push 0x28
mov eax, dword [esi]
call dword [eax + 0xc]
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x419903
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0x46efac
mov byte [eax + 0x3ac], 1
lea eax, [ebp - 0x38]
mov ebx, dword [ebp - 0x170]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x30], 0
lea eax, [ebx + eax*4]
cmp ebx, eax
je 0x4198e3
xor edi, edi
nop word [eax + eax]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetThreadId]
mov esi, eax
mov dword [ebp - 0x24], edi
push esi
inc edi
mov dword [ebp - 0x10], esi
cmp esi, dword [ebp - 0x8a4]
lea eax, [ebp - 0xc8]
push str.Thread__d
push eax
sete byte [ebp - 1]
call fcn.0040e0c0
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x34], 0
je 0x41986d
cmp dword [ebp - 0x30], 0
jne 0x41986d
push 0xb3
push str.C:_buildslaveunity_buildPlatformDependent_Win_UnityCrashHandler_CrashHandlerWindows.cpp
push 4
push dword [0x46ebd0]
push 0x34
call fcn.00401c80
mov esi, eax
add esp, 0x14
test esi, esi
je 0x419863
mov eax, dword [ebp - 0x24]
lea ecx, [esi + 4]
push dword [ebp - 0x28]
mov dword [esi], eax
call fcn.004066e0
mov al, byte [ebp - 1]
mov byte [esi + 0x20], al
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0x4a
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 0x30], esi
jmp 0x41986a
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004243a0
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x20], eax
jmp 0x419749
mov dword [ebp - 0x30], 0
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0xc8]
call fcn.00401a80
push 0x400
push 0
push dword [ebx]
lea eax, [ebp - 0x13c]
push eax
call fcn.0041aa30
add esp, 0x10
test al, al
jne 0x4198a2
push esi
push str.Exception_encountered_during_stack_walk_of_thread__d_n
call fcn.00401c40
add esp, 8
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x4198c3
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4198c3
add ecx, 0x3b0
push eax
call fcn.00406f50
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x168]
add ebx, 4
mov eax, dword [ebp - 0x170]
lea eax, [eax + ecx*4]
cmp ebx, eax
jne 0x4197a0
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x60]
push eax
call fcn.004282e0
add esp, 4
test al, al
jne 0x419900
push str.Failed_to_cache_crash_report._n
call fcn.00401c40
add esp, 4
mov ebx, dword [ebp - 0xc]
mov eax, dword [esi]
mov ecx, esi
push 0x3c
call dword [eax + 0xc]
cmp dword [ebp - 0x7c], 8
lea ecx, [ebp - 0x8b0]
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x90]
cmovae eax, dword [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x13c]
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x170]
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
push esi
push eax
call fcn.00418550
add esp, 0x1c
test al, al
lea eax, [ebp - 0x90]
je 0x41997b
push eax
cmp ebx, edi
je 0x419964
mov ecx, edi
call fcn.00415c60
add edi, 0x18
mov dword [ebp - 0x18], edi
jmp 0x419994
push edi
lea ecx, [ebp - 0x1c]
call fcn.00413230
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
jmp 0x419994
cmp dword [ebp - 0x7c], 8
cmovae eax, dword [ebp - 0x90]
push eax
push str.Failed_to_generate_report_summary_at__S_n
call fcn.00401c40
add esp, 8
mov ecx, dword [ebp - 8]
push 0x50
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp byte [ebp + 0x18], 0
je 0x4199bc
test byte [ebp - 0x574], 1
je 0x4199bc
push dword [ebp - 0x890]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4199c5
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp + 0x14]
mov esi, dword [eax + 8]
cmp esi, dword [eax + 0xc]
je 0x419ba9
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0041b570
add esp, 8
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x419b42
test al, 0x10
jne 0x419b42
cmp dword [ebp - 0x48], 8
lea edx, [ebp - 0x5c]
mov dword [ebp - 0xb4], 0
cmovae edx, dword [ebp - 0x5c]
xor eax, eax
mov ecx, edx
mov word [ebp - 0xc4], ax
mov dword [ebp - 0xb0], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x28], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419a34
sub ecx, dword [ebp - 0x28]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xc4]
call fcn.00422fd0
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0xc4]
push eax
lea edx, [ebp - 0x44]
cmovae edx, dword [ebp - 0x44]
sub esp, 0x18
mov eax, esp
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x28], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419a86
sub ecx, dword [ebp - 0x28]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x24]
push edx
call fcn.00422fd0
lea eax, [ebp - 0x78]
push eax
call fcn.0041a190
add esp, 0x20
lea ecx, [ebp - 0xc4]
call fcn.0040ec00
cmp dword [ebp - 0x64], 8
lea ecx, [ebp - 0x78]
push 1
cmovae ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push 0
cmovae eax, dword [ebp - 0x44]
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x419b0a
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
mov ecx, esi
cmovae eax, dword [ebp - 0x5c]
cmp dword [esi + 0x14], 0x10
jb 0x419af6
mov ecx, dword [esi]
push eax
push ecx
push str.Failed_to_copy___s__to_crash_report_folder_at___S__n
call fcn.00401c40
add esp, 0xc
lea eax, [ebp - 0x44]
jmp 0x419b0d
lea eax, [ebp - 0x78]
push eax
cmp ebx, edi
je 0x419b29
mov ecx, edi
call fcn.00415c60
add edi, 0x18
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x18], edi
call fcn.0040ec00
jmp 0x419b5a
push edi
lea ecx, [ebp - 0x1c]
call fcn.00413230
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x78]
mov ebx, dword [ebp - 0x14]
call fcn.0040ec00
jmp 0x419b5a
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x419b4c
mov eax, dword [esi]
push eax
push str.Failed_to_find_file___s__n
call fcn.00401c40
add esp, 8
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x419b94
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419b8a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419e80
push edx
push ecx
call fcn.00433b05
add esp, 8
mov eax, dword [ebp + 0x14]
add esi, 0x30
cmp esi, dword [eax + 0xc]
jne 0x4199d4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 8]
mov ecx, esi
push 0x64
mov eax, dword [esi]
call dword [eax + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], 0
cmp dword [eax + 0x24], 0
je 0x419cb9
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea esi, [eax + 0x14]
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00418f80
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
cmovae eax, dword [ebp - 0x78]
push eax
push str.Launching_custom_bug_reporter_with_command_line:_n___S_n
call fcn.00401c40
add esp, 0x18
mov dword [ebp - 0x114], 0x44
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0xe8], 1
xor eax, eax
xorps xmm0, xmm0
cmp dword [ebp - 0x64], 8
push ecx
lea ecx, [ebp - 0x114]
mov word [ebp - 0xd2], ax
push ecx
push 0
push 0
push 0
push 0
mov eax, 5
movlpd qword [ebp - 0x110], xmm0
mov word [ebp - 0xe4], ax
lea eax, [ebp - 0x78]
cmovae eax, dword [ebp - 0x78]
push 0
push 0
push eax
push 0
movlpd qword [ebp - 0x108], xmm0
movlpd qword [ebp - 0x100], xmm0
movlpd qword [ebp - 0xf8], xmm0
movlpd qword [ebp - 0xf0], xmm0
movlpd qword [ebp - 0xe2], xmm0
movlpd qword [ebp - 0xda], xmm0
movups xmmword [ebp - 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x419c91
mov dword [ebp - 0xc], eax
jmp 0x419cae
cmp dword [esi + 0x14], 0x10
jb 0x419c99
mov esi, dword [esi]
push esi
push str.Failed_to_launch_bug_reporter:___s_
call fcn.00401c40
add esp, 8
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x78]
call fcn.0040ec00
mov esi, dword [ebp - 8]
cmp byte [ebp + 0x1c], 0
mov ecx, esi
mov eax, dword [esi]
je 0x419cc8
call dword [eax + 0x10]
jmp 0x419ccb
call dword [eax + 4]
test byte [ebp - 0x574], 1
lea ecx, [ebp - 0x13c]
mov esi, 0xfffffc86
cmovne esi, dword [ebp - 0xc]
call fcn.0040f550
cmp dword [ebp - 0x20], 0
je 0x419d3e
lea eax, [ebp - 0x1c]
push eax
push edi
mov edi, dword [ebp - 0x20]
push edi
call fcn.004131c0
sub ebx, edi
mov eax, 0x2aaaaaab
imul ebx
add esp, 0xc
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x419d34
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419e80
push ecx
push edi
call fcn.00433b05
add esp, 8
mov edx, dword [ebp - 0x94]
cmp edx, 8
jb 0x419d7e
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419d74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419e80
push edx
push ecx
call fcn.00433b05
add esp, 8
mov edx, dword [ebp - 0x7c]
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
cmp edx, 8
jb 0x419dd8
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419dce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419e80
push edx
push ecx
call fcn.00433b05
add esp, 8
mov edx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
cmp edx, 8
jb 0x419e25
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419e1b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419e80
push edx
push ecx
call fcn.00433b05
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x170]
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
call fcn.0040f4a0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push ecx
push 0x556e6974
push 0x79434803
push esi
push str.Crash_data_sent_by_PID__d_is_corrupt:_expected_magic_0x_llx_but_got_0x_llx_n
call fcn.00401c40
add esp, 0x18
lea ecx, [ebp - 0x170]
mov esi, 0xfffffc82
call fcn.0040f4a0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0043f9ea
int3