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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645d20
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax + 0x10], ebx
je 0x4359ff
push 0xffffffffffffffff
xor ecx, ecx
push ebx
mov word [ebp - 0x30], cx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
call fcn.00403240
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x20]
lea eax, [ecx - 1]
cmp ecx, eax
ja 0x43599c
push str.invalid_string_position
call fcn.005fe693
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x30]
mov edx, edi
cmp esi, 8
jae 0x4359ac
lea edx, [ebp - 0x30]
cmp word [edx + eax*2], 0x5c
je 0x4359e1
cmp ecx, eax
ja 0x4359c1
push str.invalid_string_position
call fcn.005fe693
mov ecx, edi
cmp esi, 8
jae 0x4359cb
lea ecx, [ebp - 0x30]
cmp word [ecx + eax*2], 0x2f
je 0x4359e1
push 1
push 0x688728
lea ecx, [ebp - 0x30]
call fcn.0040a780
lea ecx, [ebp - 0x30]
call fcn.00435770
test al, al
jne 0x435a06
cmp dword [ebp - 0x1c], 8
jb 0x4359ff
mov edx, dword [ebp - 0x30]
push edx
call fcn.004effaf
add esp, 4
xor al, al
jmp 0x435b60
cmp dword [ebp - 0x20], ebx
je 0x435a43
mov eax, dword [ebp - 0x30]
mov esi, 8
cmp dword [ebp - 0x1c], esi
jae 0x435a1b
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
test al, al
je 0x435a43
cmp dword [ebp - 0x1c], esi
jb 0x435a3c
mov eax, dword [ebp - 0x30]
push eax
call fcn.004effaf
add esp, 4
mov al, 1
jmp 0x435b60
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.004073f0
mov edi, dword [ebp - 0x60]
add esp, 4
cmp edi, dword [ebp - 0x5c]
jne 0x435a7e
lea ecx, [ebp - 0x60]
call fcn.00409ce0
lea ecx, [ebp - 0x30]
call fcn.004bf3b0
xor al, al
jmp 0x435b60
mov byte [ebp - 0x4d], 1
jmp 0x435a86
xor ebx, ebx
cmp dword [edi + 0x14], 8
jb 0x435a90
mov edx, dword [edi]
jmp 0x435a92
mov edx, edi
xor eax, eax
mov word [ebp - 0x4c], ax
mov eax, edx
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x435aa7
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x4c]
call fcn.00403600
cmp dword [ebp - 0x3c], ebx
jne 0x435ac9
xor al, al
jmp 0x435ae1
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x435ad5
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
test al, al
mov esi, 8
sete bl
cmp dword [ebp - 0x38], esi
jb 0x435afc
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004effaf
add esp, 4
test bl, bl
je 0x435b18
cmp dword [edi + 0x14], esi
jb 0x435b09
mov eax, dword [edi]
jmp 0x435b0b
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x435b29
add edi, 0x1c
cmp edi, dword [ebp - 0x5c]
jne 0x435a84
mov bl, byte [ebp - 0x4d]
jmp 0x435b2b
xor bl, bl
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x435b4d
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x5c]
push edx
lea eax, [ebp - 0x54]
push eax
push ecx
push edi
call fcn.00402cd0
push edi
call fcn.004effaf
add esp, 0x14
cmp dword [ebp - 0x1c], esi
jb 0x435b5e
mov edx, dword [ebp - 0x30]
push edx
call fcn.004effaf
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret