Function at 0x443070
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x576520
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
test ecx, ecx
je 0x44335f
cmp word [ecx], 0
je 0x44335f
lea eax, [esp + 0x14]
push eax
call fcn.00401bd0
lea esi, [esp + 0x14]
mov dword [esp + 0x2c], 0
call fcn.00442ef0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004045e0
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x2c], 1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4431c5
mov edx, dword [esp + 0x14]
push 0x5c
push edx
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x443316
sub eax, dword [esp + 0x14]
sar eax, 1
mov ebp, eax
test ebp, ebp
jle 0x443316
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
call fcn.00407b90
mov byte [esp + 0x2c], 2
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x443182
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x443175
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x443175
call fcn.004045e0
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x443168
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [esp + 0x14], ecx
jmp 0x443182
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00402030
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4431a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4430f0
mov esi, dword [sym.imp.MSVCR80.dll_wcschr]
mov bl, 3
jmp 0x443234
lea eax, [edi - 0x10]
mov byte [esp + 0x2c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4431e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44320e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edi, dword [esp + 0x18]
mov ecx, dword [edi - 0xc]
lea eax, [ebp + 1]
test eax, eax
jl 0x4432bd
cmp eax, ecx
jge 0x4432bd
lea ecx, [edi + eax*2]
push 0x5c
push ecx
call esi
add esp, 8
test eax, eax
je 0x4432bd
sub eax, edi
sar eax, 1
mov ebp, eax
test ebp, ebp
jle 0x4432bd
lea ecx, [esp + 0x20]
lea edx, [esp + 0x18]
call fcn.00407b90
lea edi, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.004042f0
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44329a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x443230
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4432d7
jmp 0x443230
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4432eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4432eb
lea eax, [esp + 0x18]
call fcn.00401b90
lea eax, [esp + 0x14]
call fcn.00401b90
jmp 0x44335f
lea eax, [esp + 0x18]
call fcn.00401b90
lea eax, [esp + 0x14]
call fcn.00401b90
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [edi - 0x10]
mov byte [esp + 0x2c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x443337
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44335f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret