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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec656
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x674ff8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ddb0
mov bl, 1
jmp 0x40dfa4
xor eax, eax
mov dword [ebp - 0x2c], 7
push eax
push 0x63ca44
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.0040a0a0
xor eax, eax
mov byte [ebp - 4], 1
push eax
push 0x63ca44
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040a0a0
mov byte [ebp - 4], 2
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push esi
push ecx
lea ecx, [ebp + 8]
call fcn.0040e3e0
mov edi, eax
lea ecx, [ebp + 8]
test edi, edi
js 0x40dea6
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x58]
push eax
call fcn.0040e3a0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x70]
call fcn.0040e710
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x40de48
mov eax, dword [eax]
push 0
push eax
call ebx
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x40de62
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.0040b0f0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040e600
push 1
push 0x63d128
lea ecx, [ebp - 0x40]
call fcn.0040e4d0
mov byte [ebp - 4], 2
lea esi, [edi + 1]
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x40de04
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0040b0f0
jmp 0x40de04
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x70]
push eax
call fcn.0040e3a0
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x40deed
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40ded0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040b0f0
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040e850
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x40df06
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.0040b0f0
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x70]
call fcn.0040e710
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x40df20
mov eax, dword [eax]
push 0
push eax
call ebx
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x40df3a
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.0040b0f0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x14]
setne bl
cmp eax, 8
jb 0x40df67
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040b0f0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x40df90
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040b0f0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x40dfb9
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0040b0f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret