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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452aed
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x46a064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x150], 0x100
nop dword [eax + eax]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x148], edi
jb 0x403c14
mov eax, dword [edi]
mov dword [ebp - 0x148], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x14c], eax
cmp esi, eax
jae 0x403cb1
push 0x100
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.0042f170
add esp, 0xc
mov ecx, 0x456454
mov edx, 0x100
nop word [eax + eax]
movzx eax, word [ecx]
cmp ax, dx
jae 0x403d71
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x140], 1
cmp ecx, 0x456458
jne 0x403c50
mov edx, dword [ebp - 0x148]
mov ecx, dword [edi + 0x10]
lea esi, [edx + esi*2]
lea ecx, [edx + ecx*2]
cmp esi, ecx
jae 0x403cb1
nop word [eax + eax]
movzx eax, word [esi]
cmp ax, word [ebp - 0x150]
jae 0x403caa
cmp byte [ebp + eax - 0x140], 0
jne 0x403d68
add esi, 2
cmp esi, ecx
jb 0x403c90
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x403dd5
cmp dword [edi + 0x10], esi
mov eax, esi
mov dword [ebp - 0x40], 0
mov ecx, edi
cmovb eax, dword [edi + 0x10]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
jb 0x403ce5
mov ecx, dword [edi]
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00401530
lea ecx, [ebp - 0x28]
call fcn.00402df0
movups xmm0, xmmword [ebp - 0x40]
inc esi
cmp dword [ebp - 0x30], 0
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x18], xmm0
je 0x403c00
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403c00
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403c00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403c00
mov byte [ebp - 0x141], 0
jmp 0x403e23
sub esi, edx
sar esi, 1
jmp 0x403cb4
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x14c]
lea esi, [eax + esi*2]
lea edi, [eax + ecx*2]
cmp esi, edi
jae 0x403db4
nop word [eax + eax]
movzx edx, word [esi]
mov ecx, 2
mov eax, 0x456454
nop dword [eax]
cmp word [eax], dx
je 0x403dc2
add eax, 2
sub ecx, 1
jne 0x403da0
add esi, 2
cmp esi, edi
jb 0x403d90
mov edi, dword [ebp - 0x154]
or esi, 0xffffffff
jmp 0x403cb4
sub esi, dword [ebp - 0x148]
mov edi, dword [ebp - 0x154]
sar esi, 1
jmp 0x403cb4
cmp dword [edi + 0x10], 0
je 0x403e1c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x403de5
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403e1c
cmp dword [edi + 0x14], 8
jb 0x403df9
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403e1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403e1c
mov byte [ebp - 0x141], 0
jmp 0x403e23
mov byte [ebp - 0x141], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x403e59
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403e4f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403e7a
push ecx
push edx
call fcn.0042d694
add esp, 8
mov al, byte [ebp - 0x141]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d6a7
mov esp, ebp
pop ebp
ret
call fcn.0043209f
int3