Function at 0x406e1d
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
sub esp, 0x304
lea ebp, [esp - 4]
mov eax, dword [0x430158]
xor eax, ebp
mov dword [ebp + 0x304], eax
push 0xc0
mov eax, 0x42372f
call fcn.0040dff8
lea ecx, [ebp - 0x70]
call fcn.00405262
xor ebx, ebx
push 0x424cb0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], ebx
call fcn.004055e4
test eax, eax
je 0x406e9f
mov eax, dword [ebp - 0x68]
cmp dword [eax + 4], ebx
je 0x406e9f
lea ecx, [ebp]
mov dword [eax + 4], ebx
call fcn.00405a9f
mov eax, dword [ebp - 0x68]
push dword [eax + 0x10]
mov byte [ebp - 4], 1
push ebx
push 0x1f03ff
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x30], edi
jne 0x406ed0
lea ecx, [ebp]
call fcn.00405704
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.004055cd
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x304]
xor ecx, ebp
call fcn.0040dfe9
add ebp, 0x308
leave
ret
mov eax, dword [ebp - 0x68]
push dword [eax + 0xc]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
jne 0x406ef1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406e97
mov eax, dword [ebp - 0x68]
add eax, 0x2e8
push eax
lea ecx, [ebp - 0x20]
call fcn.00405fee
mov eax, dword [0x42f0b4]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x68]
push dword [eax + 8]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
mov byte [ebp - 4], 3
call fcn.004047f2
mov eax, dword [ebp - 0x68]
push edi
push esi
add eax, 0x14
push eax
lea ecx, [ebp]
call fcn.00406635
mov eax, dword [ebp - 0x68]
mov edi, dword [ebp - 0x1c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [eax + 0x2e0], edi
call esi
push dword [ebp - 0x30]
call esi
cmp edi, ebx
jne 0x406f7a
lea ecx, [ebp - 0x14]
call fcn.0040216b
lea ecx, [ebp - 0x20]
call fcn.0040216b
jmp 0x406e97
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 4
call fcn.00407b90
cmp dword [ebp - 0x40], ebx
mov edi, dword [ebp - 0x10]
pop ecx
jle 0x406fe1
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.00405282
push eax
lea ecx, [ebp - 0x38]
call fcn.0040658d
cmp dword [ebp - 0x38], edi
jne 0x406fca
push dword [ebp - 0x34]
push dword [ebp - 0x14]
call fcn.0040f4a0
test eax, eax
pop ecx
pop ecx
je 0x4070ab
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.0040216b
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x40]
jl 0x406f9c
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x431680
mov dword [0x431664], edi
call fcn.00403c3f
mov eax, dword [0x42f0b4]
mov dword [ebp - 0x18], eax
mov edi, 0x104
push edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00402baa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.004039da
push 0x431668
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004060a2
push 0x43166c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 7
call fcn.004060a2
push dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 8
call edi
push dword [ebp - 0x28]
call edi
mov eax, dword [ebp - 0x68]
lea ecx, [eax + 0x6f8]
test ecx, ecx
jne 0x407075
add eax, 0x900
je 0x407144
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x4070c0
lea ecx, [ebp - 0x28]
call fcn.0040216b
lea ecx, [ebp - 0x24]
call fcn.0040216b
lea ecx, [ebp - 0x18]
jmp 0x4070ae
lea ecx, [ebp - 0x34]
call fcn.0040216b
lea ecx, [ebp - 0x44]
call fcn.00405bc2
jmp 0x406f65
mov eax, dword [0x42f0b4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x68]
add eax, 0x900
push eax
lea eax, [ebp - 0x10]
push str.SobarID:_s_r_n
push eax
mov byte [ebp - 4], 9
call fcn.00404894
mov eax, dword [ebp - 0x10]
add esp, 0xc
push dword [eax - 8]
lea ecx, [ebp - 0x10]
push ebx
call fcn.00402baa
push eax
push dword [ebp - 0x1c]
call fcn.00408d08
mov eax, dword [ebp - 0x68]
add eax, 0x6f8
push eax
lea eax, [ebp - 0x10]
push str.CrashUrl:_s_r_n
push eax
call fcn.00404894
mov eax, dword [ebp - 0x10]
add esp, 0x18
push dword [eax - 8]
lea ecx, [ebp - 0x10]
push ebx
call fcn.00402baa
push eax
push dword [ebp - 0x1c]
call fcn.00408d08
add esp, 0xc
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.0040216b
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x407096
mov eax, dword [ebp - 0x68]
push dword [eax + 0xc]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x40718c
push dword [ebp - 0x10]
call esi
jmp 0x407096
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x8c], ecx
mov eax, dword [eax]
push str.DBGHELP.DLL
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x30], eax
jne 0x4071c3
push dword [ebp - 0x1c]
call esi
jmp 0x407182
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x4071eb
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x407096
push ebx
push ebx
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [ebp - 0x68]
push ebx
push dword [ebp - 0x10]
push dword [ecx + 0xc]
push dword [ebp - 0x1c]
call eax
push dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x34], ebx
je 0x407096
push 0x431670
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004060a2
push dword [ebp - 0x48]
mov byte [ebp - 4], 0xa
call edi
lea eax, [ebp - 0x48]
push eax
mov ecx, 0x43167c
call fcn.00403c3f
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xb
call fcn.00406dc8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x80]
call fcn.00406dc8
lea eax, [ebp - 0x80]
push eax
push ecx
lea eax, [ebp - 0x48]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.004047f2
call fcn.00408e11
pop ecx
pop ecx
lea ecx, [ebp - 0xcc]
call fcn.00407cbb
mov eax, dword [ebp - 0x68]
add eax, 0x4f0
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call fcn.00405fee
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0xd
call fcn.00407e9b
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x29], al
mov byte [ebp - 4], 0xc
call fcn.0040216b
cmp byte [ebp - 0x29], bl
je 0x40731d
lea eax, [ebp - 0xc0]
push eax
mov ecx, 0x431674
call fcn.00403c3f
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004060a2
push eax
mov ecx, 0x431678
mov byte [ebp - 4], 0xe
call fcn.00403c3f
lea ecx, [ebp - 0x34]
call fcn.0040216b
mov ax, word [ebp - 0x94]
mov word [0x42f430], ax
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0xb
call fcn.00407d20
lea ecx, [ebp - 0x80]
call fcn.0040687d
lea ecx, [ebp - 0x48]
call fcn.0040216b
lea ecx, [ebp - 0x28]
call fcn.0040216b
lea ecx, [ebp - 0x24]
call fcn.0040216b
lea ecx, [ebp - 0x18]
call fcn.0040216b
lea ecx, [ebp - 0x44]
call fcn.00405bc2
lea ecx, [ebp - 0x14]
call fcn.0040216b
lea ecx, [ebp - 0x20]
call fcn.0040216b
lea ecx, [ebp]
call fcn.00405704
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.004055cd
xor eax, eax
inc eax
jmp 0x406ead