Function at 0x4194e0
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.00433ff0
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.0040f300
push 0x740
lea eax, [ebp - 0x8b0]
push 0
push eax
call fcn.00438690
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 0x419576
push 0x740
push edi
push esi
push str.Failed_to_read_PID__ds_memory_at__p___d_bytes__n
call fcn.00401c70
add esp, 0x10
lea ecx, [ebp - 0x170]
mov esi, 0xfffffc81
call fcn.0040f550
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 0x419f8d
cmp eax, 0x556e6974
jne 0x419f8d
mov eax, dword [ebp - 0x8a0]
cmp eax, 0x740
je 0x4195bf
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.00401c70
add esp, 0x10
jmp 0x419fa7
mov eax, dword [ebp - 0x8a8]
cmp eax, esi
je 0x4195dd
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.00401c70
add esp, 0xc
jmp 0x419fa7
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.0041b6b0
add esp, 8
push eax
call fcn.00418130
add esp, 8
lea ecx, [ebp - 0xc4]
mov bl, al
call fcn.0040ecb0
test bl, bl
jne 0x41963e
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.00401c70
add esp, 8
push 0x800
lea eax, [ebp - 0x18b0]
push eax
push 0
push dword [ebp + 0xc]
call sub.PSAPI.DLL_GetModuleFileNameExW
call fcn.00429750
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 8], eax
cmp byte [ebx + 0xd4], 0
je 0x4196c2
mov ecx, dword [eax]
lea eax, [ebp - 0x78]
mov edi, dword [ecx]
lea ecx, [ebx + 0x74]
push ecx
push eax
call fcn.0041b6b0
mov esi, eax
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x419686
mov esi, dword [esi]
lea ecx, [ebx + 0x44]
push ecx
lea eax, [ebp - 0xc4]
push eax
call fcn.0041b6b0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4196a1
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.0040ecb0
lea ecx, [ebp - 0x78]
call fcn.0040ecb0
push str.error.log
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00412b10
push str.crash.dmp
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00412b10
push ebx
call fcn.00419fd0
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.0041b6b0
mov esi, eax
add esp, 0x24
cmp dword [esi + 0x14], 8
jb 0x41972d
mov esi, dword [esi]
mov dword [ebp - 0x10], ebx
test esi, esi
je 0x419779
cmp word [esi], bx
je 0x419779
push dword [ebp - 0x898]
push esi
push dword [ebp + 0xc]
call fcn.00429fc0
add esp, 0xc
test eax, eax
jne 0x419771
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x419768
test al, 0x10
jne 0x419768
mov dword [ebp - 0x2c], 2
jmp 0x419780
mov dword [ebp - 0x2c], 3
jmp 0x419780
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], ebx
jmp 0x419780
mov dword [ebp - 0x2c], 1
lea ecx, [ebp - 0xc4]
call fcn.0040ecb0
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.004277c0
lea ecx, [ebp - 0x13c]
call fcn.00410f10
lea ecx, [ebp - 0x13c]
call fcn.00424eb0
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 0x419851
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00428c70
add esp, 0x10
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x419980
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 0x419866
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.00401c70
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 0x419a43
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 0x419a23
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.0040e170
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x34], 0
je 0x4199ad
cmp dword [ebp - 0x30], 0
jne 0x4199ad
push 0xb3
push str.C:_buildslaveunity_buildPlatformDependent_Win_UnityCrashHandler_CrashHandlerWindows.cpp
push 4
push dword [0x46ebd0]
push 0x34
call fcn.00401cb0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4199a3
mov eax, dword [ebp - 0x24]
lea ecx, [esi + 4]
push dword [ebp - 0x28]
mov dword [esi], eax
call fcn.00406700
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 0x4199aa
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004244e0
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 0x419889
mov dword [ebp - 0x30], 0
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0xc8]
call fcn.00401ab0
push 0x400
push 0
push dword [ebx]
lea eax, [ebp - 0x13c]
push eax
call fcn.0041ab70
add esp, 0x10
test al, al
jne 0x4199e2
push esi
push str.Exception_encountered_during_stack_walk_of_thread__d_n
call fcn.00401c70
add esp, 8
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x419a03
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x419a03
add ecx, 0x3b0
push eax
call fcn.00406f80
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 0x4198e0
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x60]
push eax
call fcn.00428430
add esp, 4
test al, al
jne 0x419a40
push str.Failed_to_cache_crash_report._n
call fcn.00401c70
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.004186a0
add esp, 0x1c
test al, al
lea eax, [ebp - 0x90]
je 0x419abb
push eax
cmp ebx, edi
je 0x419aa4
mov ecx, edi
call fcn.00415d10
add edi, 0x18
mov dword [ebp - 0x18], edi
jmp 0x419ad4
push edi
lea ecx, [ebp - 0x1c]
call fcn.004132e0
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
jmp 0x419ad4
cmp dword [ebp - 0x7c], 8
cmovae eax, dword [ebp - 0x90]
push eax
push str.Failed_to_generate_report_summary_at__S_n
call fcn.00401c70
add esp, 8
mov ecx, dword [ebp - 8]
push 0x50
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp byte [ebp + 0x18], 0
je 0x419afc
test byte [ebp - 0x574], 1
je 0x419afc
push dword [ebp - 0x890]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x419b05
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 0x419ce9
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0041b6b0
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 0x419c82
test al, 0x10
jne 0x419c82
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 0x419b74
sub ecx, dword [ebp - 0x28]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xc4]
call fcn.00423110
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 0x419bc6
sub ecx, dword [ebp - 0x28]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x24]
push edx
call fcn.00423110
lea eax, [ebp - 0x78]
push eax
call fcn.0041a2d0
add esp, 0x20
lea ecx, [ebp - 0xc4]
call fcn.0040ecb0
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 0x419c4a
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
mov ecx, esi
cmovae eax, dword [ebp - 0x5c]
cmp dword [esi + 0x14], 0x10
jb 0x419c36
mov ecx, dword [esi]
push eax
push ecx
push str.Failed_to_copy___s__to_crash_report_folder_at___S__n
call fcn.00401c70
add esp, 0xc
lea eax, [ebp - 0x44]
jmp 0x419c4d
lea eax, [ebp - 0x78]
push eax
cmp ebx, edi
je 0x419c69
mov ecx, edi
call fcn.00415d10
add edi, 0x18
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x18], edi
call fcn.0040ecb0
jmp 0x419c9a
push edi
lea ecx, [ebp - 0x1c]
call fcn.004132e0
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x78]
mov ebx, dword [ebp - 0x14]
call fcn.0040ecb0
jmp 0x419c9a
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x419c8c
mov eax, dword [esi]
push eax
push str.Failed_to_find_file___s__n
call fcn.00401c70
add esp, 8
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x419cd4
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419cca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419fc0
push edx
push ecx
call fcn.00433c65
add esp, 8
mov eax, dword [ebp + 0x14]
add esi, 0x30
cmp esi, dword [eax + 0xc]
jne 0x419b14
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 0x419df9
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea esi, [eax + 0x14]
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.004190c0
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.00401c70
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 0x419dd1
mov dword [ebp - 0xc], eax
jmp 0x419dee
cmp dword [esi + 0x14], 0x10
jb 0x419dd9
mov esi, dword [esi]
push esi
push str.Failed_to_launch_bug_reporter:___s_
call fcn.00401c70
add esp, 8
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x78]
call fcn.0040ecb0
mov esi, dword [ebp - 8]
cmp byte [ebp + 0x1c], 0
mov ecx, esi
mov eax, dword [esi]
je 0x419e08
call dword [eax + 0x10]
jmp 0x419e0b
call dword [eax + 4]
test byte [ebp - 0x574], 1
lea ecx, [ebp - 0x13c]
mov esi, 0xfffffc86
cmovne esi, dword [ebp - 0xc]
call fcn.0040f600
cmp dword [ebp - 0x20], 0
je 0x419e7e
lea eax, [ebp - 0x1c]
push eax
push edi
mov edi, dword [ebp - 0x20]
push edi
call fcn.00413270
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 0x419e74
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419fc0
push ecx
push edi
call fcn.00433c65
add esp, 8
mov edx, dword [ebp - 0x94]
cmp edx, 8
jb 0x419ebe
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419eb4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419fc0
push edx
push ecx
call fcn.00433c65
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 0x419f18
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419f0e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419fc0
push edx
push ecx
call fcn.00433c65
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 0x419f65
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419f5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419fc0
push edx
push ecx
call fcn.00433c65
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.0040f550
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.00401c70
add esp, 0x18
lea ecx, [ebp - 0x170]
mov esi, 0xfffffc82
call fcn.0040f550
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0043fb4a
int3