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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c9bd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5cf000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov edx, ecx
mov ecx, esp
call fcn.0040e890
lea ecx, [ebp - 0x10]
call fcn.0040d3f0
push 1
push 0xa
mov dword [ebp - 4], 0
call fcn.005562b1
lea esi, [eax + 8]
mov dword [ebp - 0x14], esi
push 1
push 0xa
call fcn.005562b1
add esp, 0x14
lea edi, [eax + 8]
mov dword [ebp - 0x28], edi
push 4
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
call fcn.00409740
mov eax, dword [eax]
mov ecx, 0x5b2dd0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40dd08
test dx, dx
je 0x40dd04
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40dd08
add eax, 4
add ecx, 4
test dx, dx
jne 0x40dce2
xor ebx, ebx
jmp 0x40dd0d
sbb ebx, ebx
or ebx, 1
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dd2c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor ecx, ecx
mov eax, 4
test ebx, ebx
mov ebx, dword [ebp - 0x10]
cmovne eax, ecx
xor edx, edx
mov dword [ebp - 0x18], eax
mov ecx, eax
mov dword [ebp - 0x20], edx
mov eax, edx
mov dword [ebp - 0x24], eax
test ecx, ecx
js 0x40dd86
cmp ecx, dword [ebx - 0xc]
jg 0x40dd86
lea eax, [ebx + ecx*2]
push 0x5afbe8
push eax
call fcn.0054f26d
mov ebx, dword [ebp - 0x10]
add esp, 8
test eax, eax
jne 0x40dd70
or eax, 0xffffffff
jmp 0x40dd74
sub eax, ebx
sar eax, 1
mov edx, dword [ebp - 0x1c]
lea ecx, [eax + 1]
inc edx
mov dword [ebp - 0x1c], edx
cmp eax, 0xffffffff
jne 0x40dd42
mov eax, dword [ebp - 0x24]
test eax, eax
js 0x40dea1
mov eax, dword [ebp - 0x18]
test eax, eax
js 0x40de2f
cmp eax, dword [ebx - 0xc]
jg 0x40de2f
lea eax, [ebx + eax*2]
push 0x5afbe8
push eax
call fcn.0054f26d
mov ebx, dword [ebp - 0x10]
add esp, 8
test eax, eax
jne 0x40ddbf
or eax, 0xffffffff
jmp 0x40ddc3
sub eax, ebx
sar eax, 1
lea ecx, [eax + 1]
mov dword [ebp - 0x18], ecx
cmp eax, 0xffffffff
je 0x40de34
push ecx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.00409740
mov ebx, dword [eax]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dde2
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040e4f0
mov esi, dword [ebp - 0x14]
mov eax, dword [esi - 8]
lea eax, [eax*2 + 2]
push eax
push ebx
push esi
call fcn.0054f810
mov edx, dword [ebp - 0x24]
add esp, 0xc
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40de70
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40de70
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov eax, ebx
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40de40
sub eax, edx
lea ecx, [ebp - 0x14]
sar eax, 1
push eax
call fcn.0040e4f0
mov esi, dword [ebp - 0x14]
mov eax, dword [esi - 8]
lea eax, [eax*2 + 2]
push eax
push ebx
push esi
call fcn.0054f810
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40de89
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40de95
sub dword [ebp - 0x20], 1
mov ebx, dword [ebp - 0x10]
jmp 0x40dd88
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], 0
jmp 0x40dea8
mov dword [ebp - 0x18], 1
test edi, edi
je 0x40debb
add edi, 0xfffffff8
push edi
call fcn.005529f3
mov ebx, dword [ebp - 0x10]
add esp, 4
test esi, esi
je 0x40dece
add esi, 0xfffffff8
push esi
call fcn.005529f3
mov ebx, dword [ebp - 0x10]
add esp, 4
add ebx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x40dee6
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret