Function at 0x422650
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 0x5973f5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x268
mov eax, dword [0x60a070]
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 0x42269f
mov al, 1
jmp 0x422978
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.00540030
add esp, 0xc
lea eax, [ebp - 0x248]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x422904
lea eax, [ebp - 0x248]
push eax
call fcn.00404680
add esp, 4
lea ecx, [ebp - 0x260]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00411db0
push str.Temp2345_Crashes
call fcn.00404680
add esp, 4
lea ecx, [ebp - 0x260]
push eax
push str.Temp2345_Crashes
call fcn.00411db0
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 0x422791
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 0x422904
push 0x100
call fcn.0053cfa5
mov esi, eax
add esp, 4
mov dword [ebp - 0x268], esi
mov byte [ebp - 4], 6
test esi, esi
je 0x4227bc
xor eax, eax
mov word [esi], ax
mov word [esi + 0x80], ax
jmp 0x4227be
xor esi, esi
push str.fulldump
push 0x40
push esi
mov byte [ebp - 4], 1
call fcn.0055d209
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.0055cfa0
lea eax, [ebp - 0x34]
push eax
lea eax, [esi + 0x80]
push 0x40
push eax
call fcn.0055d209
add esp, 0x1c
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x270], 1
push 0xc8
call fcn.0053c458
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 0x422842
mov eax, dword [eax]
mov dword [ebp - 0x26c], eax
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 0
call fcn.00403c50
lea ecx, [esi + 0x28]
call fcn.00403c50
lea ecx, [esi + 0x40]
call fcn.00403c50
push 0x18
mov dword [esi + 0xc0], 0
mov dword [esi + 0xc4], 0
call fcn.0053c458
add esp, 4
mov esi, eax
push esi
push 4
call fcn.00402280
lea ecx, [esi + 4]
push ecx
push 4
mov dword [eax], esi
call fcn.00402280
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.0051960d
mov byte [ebp - 4], 1
mov esi, dword [edi]
mov eax, dword [ebp - 0x268]
mov dword [edi], eax
test esi, esi
je 0x4228fb
mov ecx, esi
call fcn.00519893
push 0xc8
push esi
call fcn.0053c9a6
add esp, 8
mov byte [ebp - 0x261], 1
jmp 0x42290b
mov byte [ebp - 0x261], 0
mov dword [ebp - 4], 8
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x42294e
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422944
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422998
push edx
push ecx
call fcn.0053c9a6
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.0053c439
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.00549bed
int3