Function at 0x422180
Capabilities:
Check if file exists
Create directory

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 0x4a5ba8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x4cc00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x6c], esi
mov edx, esi
mov dword [ebp - 0x68], 0
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4221e3
sub edx, ecx
lea ecx, [ebp - 0x68]
sar edx, 1
push edx
push esi
call fcn.00407400
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
xor edx, edx
nop dword [eax]
cmp dword [ebp - 0x54], 8
lea ecx, [ebp - 0x68]
mov edi, dword [ebp - 0x58]
cmovae ecx, dword [ebp - 0x68]
cmp edx, edi
jae 0x42225e
mov eax, edi
lea esi, [ecx + edx*2]
sub eax, edx
je 0x42225e
nop dword [eax + eax]
cmp word [esi], 0x5c
je 0x4222cd
add esi, 2
sub eax, 1
jne 0x422250
or esi, 0xffffffff
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp esi, 0xffffffff
je 0x422322
cmp edi, edx
jb 0x422647
sub edi, edx
lea eax, [ebp - 0x68]
mov ecx, esi
sub ecx, edx
cmp edi, ecx
cmovb ecx, edi
cmp dword [ebp - 0x54], 8
push ecx
cmovae eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x50]
lea eax, [eax + edx*2]
push eax
call fcn.00407400
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0x1c]
push ecx
cmp eax, dword [ebp - 0x18]
je 0x4222d3
mov ecx, eax
call fcn.00406fe0
add dword [ebp - 0x1c], 0x18
jmp 0x4222dc
sub esi, ecx
sar esi, 1
jmp 0x422261
push eax
lea ecx, [ebp - 0x20]
call fcn.00418750
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x42231a
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422310
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42264c
push edx
push ecx
call fcn.0044235d
add esp, 8
lea edx, [esi + 1]
jmp 0x422230
cmp edi, edx
jb 0x422647
sub edi, edx
lea eax, [ebp - 0x68]
or ecx, 0xffffffff
cmp edi, 0xffffffff
cmovb ecx, edi
cmp dword [ebp - 0x54], 8
push ecx
cmovae eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x50]
lea eax, [eax + edx*2]
push eax
call fcn.00407400
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0x1c]
push ecx
cmp eax, dword [ebp - 0x18]
je 0x42236a
mov ecx, eax
call fcn.00406fe0
add dword [ebp - 0x1c], 0x18
jmp 0x422373
push eax
lea ecx, [ebp - 0x20]
call fcn.00418750
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x4223b1
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4223a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42264c
push edx
push ecx
call fcn.0044235d
add esp, 8
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x14], 8
jb 0x4223bc
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4223e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.00407400
mov byte [ebp - 4], 4
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x422590
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x20]
mov edi, 1
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jle 0x422590
lea esi, [edi + 0x17]
nop
mov ecx, dword [ebp - 0x28]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x422651
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 1
cmovae eax, dword [ebp - 0x38]
push 0x4bb6b0
push ecx
push eax
push ecx
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x84]
call fcn.004085f0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
add eax, esi
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x422489
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x84]
call fcn.00407910
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
lea ecx, [ebp - 0x38]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp - 0x50]
push eax
movq qword [ebp - 0x40], xmm0
call fcn.00406f00
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x422502
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4224f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42264c
push edx
push ecx
call fcn.0044235d
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x70]
cmp edx, 8
jb 0x422543
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422539
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42264c
push edx
push ecx
call fcn.0044235d
add esp, 8
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42256d
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x20]
inc edi
imul ecx
add esi, 0x18
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jl 0x422440
push dword [ebp - 0x6c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x24]
mov esi, eax
cmp edx, 8
jb 0x4225d5
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4225cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42264c
push edx
push ecx
call fcn.0044235d
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
call fcn.004109e0
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x422627
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42261d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42264c
push edx
push ecx
call fcn.0044235d
add esp, 8
mov eax, esi
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.00441dc6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00407aa0
call fcn.004452a7
call fcn.00401470
int3