Function at 0x422880
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b7f30
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x4ff1a0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
mov eax, dword [0x4ff1a0]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
je 0x422d19
push 0xffffffffffffffff
push ebx
xor eax, eax
push esi
lea ecx, [esp + 0xc0]
mov dword [esp + 0xd4], 7
mov dword [esp + 0xd0], ebx
mov word [esp + 0xc0], ax
call fcn.0040f1f0
mov dword [esp + 0x150], ebx
mov ecx, dword [esp + 0xc4]
lea eax, [ecx - 1]
cmp ecx, eax
ja 0x422918
push str.invalid_string_position
call fcn.0048f3ef
mov edi, dword [esp + 0xc8]
mov edx, dword [esp + 0xb4]
cmp edi, 8
jae 0x422932
lea edx, [esp + 0xb4]
cmp word [edx + eax*2], 0x5c
je 0x422974
cmp ecx, eax
ja 0x422947
push str.invalid_string_position
call fcn.0048f3ef
mov ecx, dword [esp + 0xb4]
cmp edi, 8
jae 0x42295a
lea ecx, [esp + 0xb4]
cmp word [ecx + eax*2], 0x2f
je 0x422974
push 1
push 0x4c4f30
lea ecx, [esp + 0xbc]
call fcn.00410dc0
lea ecx, [esp + 0xb4]
call fcn.004222c0
test al, al
jne 0x422b4f
push 1
push 2
lea ecx, [esp + 0x24]
call fcn.00413cc0
mov byte [esp + 0x150], 1
push esi
push ecx
lea ecx, [esp + 0x24]
push 0x4c5920
push ecx
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 8
push 0x17
mov esi, 0xf
push str.CFileUtility::CreateDir
lea ecx, [esp + 0xf4]
mov dword [esp + 0x108], esi
mov dword [esp + 0x104], ebx
mov byte [esp + 0xf4], bl
call fcn.0040ebe0
mov byte [esp + 0x150], 2
push esi
push str.FileUtility.cpp
lea ecx, [esp + 0xd8]
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
call fcn.0040ebe0
mov byte [esp + 0x150], 3
lea edx, [esp + 0x108]
push edx
lea ecx, [esp + 0x20]
call fcn.00413de0
mov byte [esp + 0x150], 4
push eax
lea eax, [esp + 0xf0]
push eax
push 0x2c7
lea ecx, [esp + 0xdc]
push ecx
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x150], 3
cmp dword [esp + 0x11c], 8
jb 0x422a7c
mov edx, dword [esp + 0x108]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [esp + 0x11c], 7
mov dword [esp + 0x118], ebx
mov word [esp + 0x108], ax
mov byte [esp + 0x150], 2
mov edi, 0x10
cmp dword [esp + 0xe4], edi
jb 0x422abe
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.00490458
add esp, 4
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
mov byte [esp + 0x150], 1
cmp dword [esp + 0x100], edi
jb 0x422af4
mov edx, dword [esp + 0xec]
push edx
call fcn.00490458
add esp, 4
mov dword [esp + 0x100], esi
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
mov byte [esp + 0x150], bl
lea ecx, [esp + 0x1c]
call fcn.00412cc0
mov dword [esp + 0x150], 0xffffffff
cmp dword [esp + 0xc8], 8
jb 0x422b3e
mov eax, dword [esp + 0xb4]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov word [esp + 0xb4], cx
xor al, al
jmp 0x423008
cmp dword [esp + 0xc4], ebx
je 0x422bba
mov eax, dword [esp + 0xb4]
mov edi, 8
cmp dword [esp + 0xc8], edi
jae 0x422b74
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
cmp al, bl
je 0x422bba
mov dword [esp + 0x150], 0xffffffff
cmp dword [esp + 0xc8], edi
jb 0x422ba9
mov edx, dword [esp + 0xb4]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov word [esp + 0xb4], ax
mov al, 1
jmp 0x423008
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], ebx
mov byte [esp + 0x150], 5
lea ecx, [esp + 0xb4]
push ecx
lea ecx, [esp + 0xf0]
call fcn.004225e0
mov eax, dword [esp + 0xf0]
add esp, 4
cmp eax, dword [esp + 0xf0]
jne 0x422d20
push 1
push 2
lea ecx, [esp + 0x24]
call fcn.00413cc0
mov byte [esp + 0x150], 6
push esi
push ecx
lea edx, [esp + 0x24]
push str.PARTH_DIR_FAILED:
push edx
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 8
push str.CFileUtility::CreateDir
lea ecx, [esp + 0x10c]
call fcn.0040ece0
mov byte [esp + 0x150], 7
push str.FileUtility.cpp
lea ecx, [esp + 0x128]
call fcn.0040ece0
mov byte [esp + 0x150], 8
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x20]
call fcn.00413de0
mov byte [esp + 0x150], 9
push eax
lea ecx, [esp + 0x10c]
push ecx
push 0x2d4
lea edx, [esp + 0x130]
push edx
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x150], 8
lea ecx, [esp + 0xd0]
call fcn.0040f320
mov byte [esp + 0x150], 7
lea ecx, [esp + 0x124]
call fcn.0040f350
mov byte [esp + 0x150], 6
lea ecx, [esp + 0x108]
call fcn.0040f350
mov byte [esp + 0x150], 5
lea ecx, [esp + 0x1c]
call fcn.00412cc0
mov byte [esp + 0x150], bl
lea ecx, [esp + 0xec]
call fcn.0041f190
mov dword [esp + 0x150], 0xffffffff
lea ecx, [esp + 0xb4]
call fcn.0040f320
xor al, al
jmp 0x42301a
mov byte [esp + 0x16], 1
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x422d31
mov edx, dword [edi]
jmp 0x422d33
mov edx, edi
xor eax, eax
mov word [esp + 0xd0], ax
mov eax, edx
mov dword [esp + 0xe4], 7
mov dword [esp + 0xe0], ebx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x422d54
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0xd8]
call fcn.0040e680
mov byte [esp + 0x150], 0xa
cmp dword [esp + 0xe0], ebx
jne 0x422d86
xor al, al
jmp 0x422dab
cmp dword [esp + 0xe4], 8
mov eax, dword [esp + 0xd0]
jae 0x422d9e
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
cmp al, bl
sete byte [esp + 0x17]
mov byte [esp + 0x150], 5
cmp dword [esp + 0xe4], 8
jb 0x422dd4
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov esi, 7
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], ebx
mov word [esp + 0xd0], dx
cmp byte [esp + 0x17], bl
je 0x422e0f
cmp dword [edi + 0x14], 8
jb 0x422e01
mov eax, dword [edi]
jmp 0x422e03
mov eax, edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x422e24
add edi, 0x1c
cmp edi, dword [esp + 0xf0]
jne 0x422d27
jmp 0x422f8a
push 1
push 2
lea ecx, [esp + 0x24]
call fcn.00413cc0
mov byte [esp + 0x150], 0xb
push edi
push ecx
lea eax, [esp + 0x24]
push str.Create_directory_FAILED.
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 8
push str.CFileUtility::CreateDir
lea ecx, [esp + 0x10c]
call fcn.0040ece0
mov byte [esp + 0x150], 0xc
push str.FileUtility.cpp
lea ecx, [esp + 0xd4]
call fcn.0040ece0
mov byte [esp + 0x150], 0xd
lea ecx, [esp + 0x124]
push ecx
lea ecx, [esp + 0x20]
call fcn.00413de0
mov byte [esp + 0x150], 0xe
push eax
lea edx, [esp + 0x10c]
push edx
push 0x2df
lea eax, [esp + 0xdc]
push eax
push 3
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x150], 0xd
cmp dword [esp + 0x138], 8
jb 0x422ee7
mov ecx, dword [esp + 0x124]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [esp + 0x138], esi
mov dword [esp + 0x134], ebx
mov word [esp + 0x124], dx
mov byte [esp + 0x150], 0xc
mov edi, 0x10
cmp dword [esp + 0xe4], edi
jb 0x422f25
mov eax, dword [esp + 0xd0]
push eax
call fcn.00490458
add esp, 4
mov esi, 0xf
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
mov byte [esp + 0x150], 0xb
cmp dword [esp + 0x11c], edi
jb 0x422f60
mov ecx, dword [esp + 0x108]
push ecx
call fcn.00490458
add esp, 4
mov dword [esp + 0x11c], esi
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
mov byte [esp + 0x150], 5
lea ecx, [esp + 0x1c]
call fcn.00412cc0
mov byte [esp + 0x16], bl
mov byte [esp + 0x150], bl
mov esi, dword [esp + 0xec]
cmp esi, ebx
je 0x422fc0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xf0]
push edx
lea eax, [esp + 0xfc]
push eax
push ecx
push esi
call fcn.0041ace0
push esi
call fcn.00490458
add esp, 0x14
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], ebx
mov dword [esp + 0x150], 0xffffffff
cmp dword [esp + 0xc8], 8
jb 0x422ffa
mov edx, dword [esp + 0xb4]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov word [esp + 0xb4], ax
mov al, byte [esp + 0x16]
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], ebx
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004911d1
mov esp, ebp
pop ebp
ret