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

Disassembly:
push 0xffffffffffffffff
push 0x489e72
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4acab8]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov esi, dword [esp + 0xcc]
mov eax, dword [esi + 4]
mov edi, dword [esi]
cmp eax, 3
jbe 0x42b5a8
cmp word [edi + 2], 0x3a
jne 0x42b5a8
add edi, 6
mov ebx, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ebp, ebp
cmp word [edi], bp
je 0x42b618
movzx eax, word [edi]
cmp ax, 0x5c
je 0x42b5c4
cmp ax, 0x2f
jne 0x42b610
xor eax, eax
mov word [edi], ax
mov eax, dword [esi]
push eax
call ebx
cmp eax, 0xffffffff
je 0x42b5d7
test al, 0x10
jne 0x42b608
mov eax, dword [esi]
push ebp
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x42b608
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebp, eax
cmp ebp, 0xb7
jne 0x42b733
mov eax, dword [esi]
push eax
call ebx
test al, 0x10
je 0x42b822
xor ebp, ebp
mov ecx, 0x5c
mov word [edi], cx
add edi, 2
cmp word [edi], bp
jne 0x42b5b5
mov eax, dword [esi]
push ebp
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x42b95b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
cmp edi, 0xb7
je 0x42b8ae
mov esi, dword [esi]
lea edx, [esp + 0x68]
push esi
push edx
call fcn.00428bf0
mov esi, eax
lea eax, [esp + 0x38]
push edi
push eax
mov dword [esp + 0xd4], 6
call fcn.0042b0c0
push 0x49311c
push eax
lea ecx, [esp + 0x64]
push ecx
mov byte [esp + 0xe0], 7
call fcn.0040bdb0
push esi
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0xec], 8
call fcn.0040be70
add esp, 0x28
push 0xffffffffffffffff
push ebp
push eax
mov ecx, 0x4ab808
mov byte [esp + 0xd0], 9
call fcn.0040b360
mov edi, 0x10
cmp dword [esp + 0x2c], edi
jb 0x42b6c0
mov eax, dword [esp + 0x18]
push eax
call fcn.0046fa18
add esp, 4
mov esi, 0xf
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebp
mov byte [esp + 0x18], 0
cmp dword [esp + 0x64], edi
jb 0x42b6e5
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0046fa18
add esp, 4
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebp
mov byte [esp + 0x50], 0
cmp dword [esp + 0x48], edi
jb 0x42b705
mov edx, dword [esp + 0x34]
push edx
call fcn.0046fa18
add esp, 4
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebp
mov byte [esp + 0x34], 0
cmp dword [esp + 0x80], edi
jb 0x42b81b
mov eax, dword [esp + 0x6c]
push eax
call fcn.0046fa18
add esp, 4
xor al, al
jmp 0x42b95d
mov esi, dword [esi]
lea edx, [esp + 0x68]
push esi
push edx
call fcn.00428bf0
mov esi, eax
lea eax, [esp + 0x1c]
push ebp
xor ebx, ebx
push eax
mov dword [esp + 0xd4], ebx
call fcn.0042b0c0
push 0x49311c
push eax
lea ecx, [esp + 0x64]
push ecx
mov byte [esp + 0xe0], 1
call fcn.0040bdb0
push esi
push eax
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0xec], 2
call fcn.0040be70
add esp, 0x28
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4ab808
mov byte [esp + 0xd0], 3
call fcn.0040b360
mov edi, 0x10
cmp dword [esp + 0x48], edi
jb 0x42b7b3
mov eax, dword [esp + 0x34]
push eax
call fcn.0046fa18
add esp, 4
mov esi, 0xf
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], 0
cmp dword [esp + 0x64], edi
jb 0x42b7d8
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0046fa18
add esp, 4
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], 0
cmp dword [esp + 0x2c], edi
jb 0x42b7f8
mov edx, dword [esp + 0x18]
push edx
call fcn.0046fa18
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], 0
cmp dword [esp + 0x80], edi
jb 0x42b81b
mov eax, dword [esp + 0x6c]
push eax
call fcn.0046fa18
add esp, 4
xor al, al
jmp 0x42b95d
mov esi, dword [esi]
lea ecx, [esp + 0x68]
push esi
push ecx
call fcn.00428bf0
push str._exists_and_is_not_a_directory
push eax
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0xd8], 4
call fcn.0040bdb0
add esp, 0x14
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x4ab808
mov byte [esp + 0xd0], 5
call fcn.0040b360
mov esi, 0x10
cmp dword [esp + 0x2c], esi
jb 0x42b87c
mov eax, dword [esp + 0x18]
push eax
call fcn.0046fa18
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
cmp dword [esp + 0x80], esi
jb 0x42b81b
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0046fa18
add esp, 4
xor al, al
jmp 0x42b95d
mov eax, dword [esi]
push eax
call ebx
test al, 0x10
jne 0x42b95b
mov esi, dword [esi]
lea ecx, [esp + 0xa0]
push esi
push ecx
call fcn.00428bf0
push str._exists_and_is_not_a_directory
push eax
lea edx, [esp + 0x94]
push edx
mov dword [esp + 0xd8], 0xa
call fcn.0040bdb0
add esp, 0x14
push 0xffffffffffffffff
push ebp
push eax
mov ecx, 0x4ab808
mov byte [esp + 0xd0], 0xb
call fcn.0040b360
mov esi, 0x10
cmp dword [esp + 0x9c], esi
jb 0x42b920
mov eax, dword [esp + 0x88]
push eax
call fcn.0046fa18
add esp, 4
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], ebp
mov byte [esp + 0x88], 0
cmp dword [esp + 0xb8], esi
jb 0x42b81b
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.0046fa18
add esp, 4
xor al, al
jmp 0x42b95d
mov al, 1
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret