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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54bfc8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5a68a0]
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 0x403bfc
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 0x403c23
test al, 0x10
je 0x403c23
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.0040a450
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 0x403e30
cmp eax, ecx
jg 0x403e30
movzx eax, word [edi + eax*2]
cmp ax, 0x5c
je 0x403c6a
push 0x57da6c
lea ecx, [ebp - 0x18]
call fcn.0040a400
mov edi, dword [ebp - 0x18]
call fcn.0041f7c9
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x403c84
push 0x80004005
call fcn.0040a9a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0x57da6c
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], ebx
call fcn.004097f0
xor ecx, ecx
add esp, 0xc
cmp edi, ebx
setne cl
cmp ecx, ebx
je 0x403c7a
lea ebx, [ebx]
mov eax, dword [eax]
mov ecx, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403cea
test dx, dx
je 0x403ce6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403cea
add eax, 4
add ecx, 4
test dx, dx
jne 0x403cc4
xor eax, eax
jmp 0x403cef
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 0x403d13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x403dd8
mov eax, dword [ebp - 0x10]
add eax, 1
mov ecx, dword [edi - 0xc]
js 0x403d45
cmp eax, ecx
jge 0x403d45
lea ecx, [edi + eax*2]
push 0x5c
push ecx
call fcn.0051d7cc
add esp, 8
test eax, eax
je 0x403d45
sub eax, edi
sar eax, 1
mov dword [ebp - 0x10], eax
jmp 0x403d4c
mov dword [ebp - 0x10], 0xffffffff
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.00405040
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040a4c0
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 0x403d8c
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 0x403da5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403da5
test al, 0x10
jne 0x403dbe
cmp dword [esi - 0xc], 2
jne 0x403db2
cmp word [esi + 2], 0x3a
je 0x403dbe
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x20], eax
push 0x57da6c
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.004097f0
add esp, 0xc
jmp 0x403cc0
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 0x403df8
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 0x403e1b
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.0040a9a0
int3