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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dd88
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5eb6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
cmp eax, ebx
jne 0x413e5c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413e83
test al, 0x10
je 0x413e83
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00403760
lea edi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], ebx
mov ecx, dword [edi - 0xc]
lea eax, [ecx - 1]
cmp eax, ebx
jl 0x414090
cmp eax, ecx
jg 0x414090
movzx eax, word [edi + eax*2]
cmp ax, 0x5c
je 0x413eca
push 0x5b23c8
lea ecx, [ebp - 0x18]
call fcn.00405a10
mov edi, dword [ebp - 0x18]
call fcn.00453e50
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x413ee4
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0x5b23c8
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], ebx
call fcn.004024e0
xor ecx, ecx
add esp, 0xc
cmp edi, ebx
setne cl
cmp ecx, ebx
je 0x413eda
lea ebx, [ebx]
mov eax, dword [eax]
mov ecx, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x413f4a
test dx, dx
je 0x413f46
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x413f4a
add eax, 4
add ecx, 4
test dx, dx
jne 0x413f24
xor eax, eax
jmp 0x413f4f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [ebp - 0x1c]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x414038
mov eax, dword [ebp - 0x10]
add eax, 1
mov ecx, dword [edi - 0xc]
js 0x413fa5
cmp eax, ecx
jge 0x413fa5
lea ecx, [edi + eax*2]
push 0x5c
push ecx
call fcn.00552f53
add esp, 8
test eax, eax
je 0x413fa5
sub eax, edi
sar eax, 1
mov dword [ebp - 0x10], eax
jmp 0x413fac
mov dword [ebp - 0x10], 0xffffffff
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040ab10
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004037d0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413fec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
je 0x414005
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414005
test al, 0x10
jne 0x41401e
cmp dword [esi - 0xc], 2
jne 0x414012
cmp word [esi + 2], 0x3a
je 0x41401e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x20], eax
push 0x5b23c8
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.004024e0
add esp, 0xc
jmp 0x413f20
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414058
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41407b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004038e0
int3