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

Disassembly:
push 0xffffffffffffffff
push 0x45d770
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
xor esi, esi
cmp eax, esi
jne 0x410bc6
push esi
push esi
push str.Path_is_empty
call fcn.0042f5c8
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
push ebx
lea ecx, [esp + 0x1c]
call fcn.00406730
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x24]
call fcn.0042ef2c
mov byte [esp + 0x40], 1
lea ecx, [esp + 0x1c]
push ecx
push 0x46c1d4
lea edx, [esp + 0x28]
push edx
mov ecx, ebx
mov dword [esp + 0x28], esi
call fcn.0040a6b0
mov byte [esp + 0x40], 2
push eax
lea ecx, [esp + 0x1c]
call fcn.00406800
mov byte [esp + 0x40], 1
lea ecx, [esp + 0x20]
call fcn.00406ed0
mov eax, dword [esp + 0x18]
mov ecx, 0x4698d0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410c48
test dx, dx
je 0x410c44
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410c48
add eax, 4
add ecx, 4
test dx, dx
jne 0x410c22
xor eax, eax
jmp 0x410c4d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x410d0d
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.0042f1dc
lea edx, [esp + 0x1c]
push edx
push 0x46c1d4
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
call fcn.0040a6b0
mov byte [esp + 0x40], 3
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x410cdf
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x410cd1
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x410cd1
push eax
call fcn.00406790
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x410cc8
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x18], ebp
jmp 0x410cdf
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00406cd0
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410c19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x410c19
lea ecx, [esp + 0x14]
call fcn.00406fc0
mov byte [esp + 0x40], 5
mov eax, dword [esp + 0x14]
xor esi, esi
cmp dword [eax - 0xc], esi
jle 0x410d3d
push 0x3a
push eax
call fcn.0044391e
add esp, 8
test eax, eax
je 0x410d3d
sub eax, dword [esp + 0x14]
sar eax, 1
je 0x410d5b
cmp dword [esp + 0x2c], 0
jle 0x410dfc
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x18]
call fcn.00406800
mov esi, 1
mov eax, dword [esp + 0x2c]
cmp esi, eax
jge 0x410dfc
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 6
test esi, esi
jl 0x410eeb
cmp esi, eax
jge 0x410eeb
mov edx, dword [esp + 0x28]
lea eax, [edx + esi*4]
push eax
lea eax, [esp + 0x24]
push 0x46c1d4
push eax
call fcn.00406220
add esp, 0xc
mov byte [esp + 0x40], bl
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00406510
mov byte [esp + 0x40], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410dd8
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 ebp
test eax, eax
jne 0x410def
mov edx, dword [esp + 0x14]
push eax
push edx
call edi
test eax, eax
je 0x410e6d
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x410d75
mov byte [esp + 0x40], 1
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 0x410e21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 0
lea ecx, [esp + 0x24]
call fcn.0042f0e3
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410e57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x400
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [esp + 0x1c]
push 0
push 0
push edx
call fcn.0042f5c8
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [esp + 0x40], 1
lea ecx, [esp + 0x14]
call fcn.00406ed0
mov byte [esp + 0x40], 0
lea ecx, [esp + 0x24]
call fcn.0042f0e3
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00406ed0
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
call fcn.0042df48
int3