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

Disassembly:
push 0xffffffffffffffff
push 0x420dc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x5c]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x50], ebx
jne 0x407abf
mov eax, 0x422470
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407d4a
mov eax, dword [esp + 0x60]
lea esi, [eax - 1]
cmp eax, esi
jb 0x407af2
cmp dword [esp + 0x5c], ebx
je 0x407af2
lea ecx, [esp + 0x58]
call fcn.0040cd80
mov eax, dword [esp + 0x5c]
lea eax, [eax + esi*2]
jmp 0x407af7
mov eax, 0x422470
mov esi, 0x5c
cmp word [eax], si
jne 0x407b51
mov eax, dword [0x422604]
push 1
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x1c], esi
call fcn.0040cc40
push eax
lea edx, [esp + 0x3c]
push ebx
push edx
lea ecx, [esp + 0x64]
call fcn.0040a270
mov ecx, dword [0x422604]
mov byte [esp + 0x50], 1
push ecx
push ebx
push eax
lea ecx, [esp + 0x64]
call fcn.0040c980
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], bl
call fcn.0040cf30
mov dl, byte [esp + 0x58]
push ebx
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], dl
call fcn.0040da20
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x50], 2
cmp dword [esp + 0x60], 3
jbe 0x407c27
mov eax, dword [esp + 0x5c]
cmp eax, ebx
jne 0x407b95
mov eax, 0x422470
push ebx
push eax
call ebp
test eax, eax
jne 0x407c9f
call edi
cmp eax, 0xb7
je 0x407c59
call edi
cmp eax, 3
jne 0x407c7c
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x58]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.0040d8b0
mov eax, dword [0x422604]
push 1
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x1c], esi
call fcn.0040cc40
push eax
lea ecx, [esp + 0x3c]
push ebx
push ecx
lea ecx, [esp + 0x64]
call fcn.0040a270
mov edx, dword [0x422604]
lea ecx, [esp + 0x58]
push edx
push ebx
push eax
mov byte [esp + 0x5c], 3
call fcn.0040c980
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 2
call fcn.0040cf30
jmp 0x407b7d
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], bl
call fcn.0040d8a0
mov edx, dword [eax]
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.0040d990
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x407d3a
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], bl
call fcn.0040d8a0
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push ecx
jmp 0x407d92
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], bl
call fcn.0040d8a0
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
jmp 0x407d2b
mov al, byte [esp + 0x58]
push ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], al
call fcn.0040cf30
mov eax, dword [esp + 0x24]
mov byte [esp + 0x50], 4
cmp eax, ebx
je 0x407d0b
mov ecx, dword [esp + 0x20]
mov edx, dword [0x422604]
push edx
push ebx
mov eax, dword [ecx + 4]
lea ecx, [esp + 0x30]
add eax, 8
push eax
call fcn.0040c980
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
mov eax, dword [eax + 4]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.0040d910
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x407cfd
mov eax, 0x422470
push ebx
push eax
call ebp
test eax, eax
je 0x407d72
cmp dword [esp + 0x24], ebx
jne 0x407cbe
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], 2
call fcn.0040cf30
mov eax, dword [esp + 0x20]
mov byte [esp + 0x50], bl
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040d990
mov edx, dword [esp + 0x20]
push edx
call fcn.0041749e
add esp, 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
push 1
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], 0xffffffff
call fcn.0040cf30
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 0x10
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], 2
call fcn.0040cf30
mov eax, dword [esp + 0x20]
mov byte [esp + 0x50], bl
push eax
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.0040d990
mov eax, dword [esp + 0x20]
push eax
jmp 0x407d3a