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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4649ed
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x481014]
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
jne 0x41655c
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x4163eb
xor bl, bl
jmp 0x41655e
mov ebx, dword [ebp + 0x1c]
lea eax, [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ebx, 8
cmovae eax, ecx
lea esi, [eax + edx*2]
lea eax, [ebp + 8]
cmovae eax, ecx
cmp eax, esi
je 0x416429
mov ecx, 0x5c
nop dword [eax]
cmp word [eax], 0x2f
jne 0x416419
mov word [eax], cx
add eax, 2
cmp eax, esi
jne 0x416410
mov ebx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
xor esi, esi
nop dword [eax + eax]
cmp ebx, 8
lea edi, [ebp + 8]
cmovae edi, ecx
cmp esi, edx
jae 0x41646f
mov ecx, edx
lea eax, [edi + esi*2]
sub ecx, esi
mov esi, 0
je 0x416462
cmp word [eax], 0x5c
je 0x416460
cmp ecx, 1
je 0x416462
add eax, 2
dec ecx
cmp word [eax], 0x5c
jne 0x416451
mov esi, eax
test esi, esi
je 0x41646f
sub esi, edi
sar esi, 1
cmp esi, 0xffffffff
jne 0x416471
mov esi, edx
xor eax, eax
mov dword [ebp - 0x18], 0
cmp edx, esi
mov word [ebp - 0x28], ax
mov ecx, esi
mov dword [ebp - 0x14], 7
cmovb ecx, edx
lea eax, [ebp + 8]
cmp ebx, 8
push ecx
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push eax
call fcn.004053c0
cmp dword [ebp - 0x18], 0
je 0x4164d5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4164d5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00450a25
add esp, 4
test eax, eax
jne 0x416522
mov edx, dword [ebp - 0x14]
inc esi
cmp edx, 8
jb 0x416510
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416506
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4165b2
push edx
push ecx
call fcn.0042f33f
add esp, 8
mov edx, dword [ebp + 0x18]
cmp esi, edx
jae 0x41655c
mov ebx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
jmp 0x416430
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x416558
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41654e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4165b2
push edx
push ecx
call fcn.0042f33f
add esp, 8
xor bl, bl
jmp 0x41655e
mov bl, 1
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x416594
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41658a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4165b2
push edx
push ecx
call fcn.0042f33f
add esp, 8
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.0042f2f9
mov esp, ebp
pop ebp
ret
call fcn.0044e102
int3