Function at 0x422780
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a5c5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x268
mov eax, dword [0x60e070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi], 0
je 0x4227cf
mov al, 1
jmp 0x422aa8
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
push 0x20a
push eax
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 1
push eax
call fcn.005431f0
add esp, 0xc
lea eax, [ebp - 0x248]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x422a34
lea eax, [ebp - 0x248]
push eax
call fcn.00404660
add esp, 4
lea ecx, [ebp - 0x260]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00411ed0
push str.Temp2345_Crashes
call fcn.00404660
add esp, 4
lea ecx, [ebp - 0x260]
push eax
push str.Temp2345_Crashes
call fcn.00411ed0
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4228c1
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push 0
cmovae eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x422a34
push 0x100
call fcn.00540145
mov esi, eax
add esp, 4
mov dword [ebp - 0x268], esi
mov byte [ebp - 4], 6
test esi, esi
je 0x4228ec
xor eax, eax
mov word [esi], ax
mov word [esi + 0x80], ax
jmp 0x4228ee
xor esi, esi
push str.fulldump
push 0x40
push esi
mov byte [ebp - 4], 1
call fcn.005603c9
add esp, 0xc
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
push 0xa
push 0x10
push eax
push dword [edi + 0x1c]
movups xmmword [ebp - 0x24], xmm0
call fcn.00560160
lea eax, [ebp - 0x34]
push eax
lea eax, [esi + 0x80]
push 0x40
push eax
call fcn.005603c9
add esp, 0x1c
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x270], 1
push 0xc8
call fcn.0053f5f8
mov esi, eax
add esp, 4
mov dword [ebp - 0x268], esi
lea eax, [edi + 4]
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x26c], eax
jb 0x422972
mov eax, dword [eax]
mov dword [ebp - 0x26c], eax
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 0
call fcn.00403c30
lea ecx, [esi + 0x28]
call fcn.00403c30
lea ecx, [esi + 0x40]
call fcn.00403c30
push 0x18
mov dword [esi + 0xc0], 0
mov dword [esi + 0xc4], 0
call fcn.0053f5f8
add esp, 4
mov esi, eax
push esi
push 4
call fcn.00402260
lea ecx, [esi + 4]
push ecx
push 4
mov dword [eax], esi
call fcn.00402260
add esp, 0x10
lea ecx, [ebp - 0x274]
mov dword [eax], esi
push dword [ebp - 0x26c]
mov eax, dword [ebp - 0x268]
push ecx
push 0
push ecx
push str..pipe2345SafeCenterBreakpad
push 0
push 7
push 0
push 0
push 0
lea ecx, [ebp - 0x260]
mov dword [eax + 0xc0], esi
push ecx
mov ecx, eax
call fcn.0051c7ad
mov byte [ebp - 4], 1
mov esi, dword [edi]
mov eax, dword [ebp - 0x268]
mov dword [edi], eax
test esi, esi
je 0x422a2b
mov ecx, esi
call fcn.0051ca33
push 0xc8
push esi
call fcn.0053fb46
add esp, 8
mov byte [ebp - 0x261], 1
jmp 0x422a3b
mov byte [ebp - 0x261], 0
mov dword [ebp - 4], 8
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x422a7e
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422a74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422ac8
push edx
push ecx
call fcn.0053fb46
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov al, byte [ebp - 0x261]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053f5d9
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.0054cdad
int3