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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x4b4810]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
mov dword [ebp - 0x34c], ebx
cmp dword [esi + 0x10], 0x104
jae 0x422f1e
cmp dword [edi + 0x10], 0x104
jae 0x422f1e
xor eax, eax
mov dword [ebp - 0x24], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x38], ax
call fcn.00419d40
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x422c97
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x20]
call fcn.004228a0
lea ecx, [ebp - 0x38]
cmp ecx, eax
je 0x422c1e
push 0xffffffffffffffff
push ebx
push eax
call fcn.00419d40
cmp dword [ebp - 0xc], 8
jb 0x422c2f
push dword [ebp - 0x20]
call fcn.0048f211
add esp, 4
cmp dword [ebp - 0x28], ebx
je 0x422cf9
mov edx, esi
lea ecx, [ebp - 0x68]
call fcn.004228a0
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x422ed3
cmp dword [ebp - 0x28], eax
jb 0x422c69
lea ecx, [ebp - 0x68]
push ecx
push eax
push 0
lea ecx, [ebp - 0x38]
call fcn.00419130
test eax, eax
je 0x422ed3
push 3
push ecx
push esi
lea ecx, [ebp - 0x344]
call fcn.004311d0
push esi
call fcn.00422f40
add esp, 4
test al, al
jne 0x422d00
lea ecx, [ebp - 0x344]
xor bl, bl
call fcn.004312a0
jmp 0x422ed5
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x38]
call fcn.0041d730
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.004228a0
lea ecx, [ebp - 0x38]
cmp ecx, eax
je 0x422cbe
push 0xffffffffffffffff
push 0
push eax
call fcn.00419d40
cmp dword [ebp - 0xc], 8
jb 0x422ccf
push dword [ebp - 0x20]
call fcn.0048f211
add esp, 4
xor eax, eax
mov dword [ebp - 0xc], 7
cmp dword [ebp - 0x6c], 8
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], ax
jb 0x422cf0
push dword [ebp - 0x80]
call fcn.0048f211
add esp, 4
cmp dword [ebp - 0x28], ebx
jne 0x422c38
xor bl, bl
jmp 0x422efa
push esi
lea ecx, [ebp - 0x50]
call fcn.00418f80
push esi
call fcn.00422f60
add esp, 4
mov byte [ebp - 0x34c], al
lea ecx, [ebp - 0x98]
mov byte [ebp - 0x345], 1
push esi
call fcn.00418f80
push edi
call fcn.00422f60
add esp, 4
test al, al
je 0x422d5f
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call fcn.0041d730
lea ecx, [ebp - 0x98]
cmp ecx, eax
je 0x422d57
push 0xffffffffffffffff
push 0
push eax
call fcn.00419d40
lea ecx, [ebp - 0x80]
call fcn.004190e0
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x40], 0
je 0x422ea1
xor eax, eax
mov dword [ebp - 0xc], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
call fcn.00419d40
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x98]
call fcn.0041ce40
test al, al
jne 0x422dbc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x98]
call fcn.0041d520
test al, al
je 0x422ec7
cmp byte [ebp - 0x34c], 0
je 0x422e01
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x422de3
shr eax, 4
and al, 1
jne 0x422e2a
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
push 0
cmovae eax, dword [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x422e2a
test bl, 4
je 0x422e23
and ebx, 0xfffffffb
jmp 0x422e18
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x50]
call fcn.00424150
test al, al
jne 0x422e2a
test bl, 8
je 0x422e23
and ebx, 0xfffffff7
lea ecx, [ebp - 0x3fc]
call fcn.0041faa0
mov byte [ebp - 0x345], 0
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x344]
call fcn.004313b0
lea ecx, [ebp - 0x50]
cmp ecx, eax
je 0x422e4a
push 0xffffffffffffffff
push 0
push eax
call fcn.00419d40
cmp dword [ebp - 0x6c], 8
jb 0x422e5b
push dword [ebp - 0x80]
call fcn.0048f211
add esp, 4
cmp dword [ebp - 0x40], 0
je 0x422e83
lea eax, [ebp - 0x64c]
push eax
lea ecx, [ebp - 0x344]
call fcn.00431350
mov eax, dword [eax]
shr eax, 4
and eax, 0xffffff01
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0xc], 8
jb 0x422e94
push dword [ebp - 0x20]
call fcn.0048f211
add esp, 4
cmp byte [ebp - 0x345], 0
jne 0x422d65
mov bl, byte [ebp - 0x345]
lea ecx, [ebp - 0x98]
call fcn.004190e0
lea ecx, [ebp - 0x50]
call fcn.004190e0
lea ecx, [ebp - 0x344]
call fcn.004312a0
jmp 0x422ed5
lea ecx, [ebp - 0x20]
xor bl, bl
call fcn.004190e0
jmp 0x422ea7
xor bl, bl
cmp dword [ebp - 0x54], 8
jb 0x422ee6
push dword [ebp - 0x68]
call fcn.0048f211
add esp, 4
xor eax, eax
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
cmp dword [ebp - 0x24], 8
jb 0x422f0b
push dword [ebp - 0x38]
call fcn.0048f211
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00492f61
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00492f61
mov esp, ebp
pop ebp
ret