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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x51a0a0]
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 0x436286
cmp dword [edi + 0x10], 0x104
jae 0x436286
xor eax, eax
mov dword [ebp - 0xc], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], ax
call fcn.0041b960
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 0x43607e
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.00435c10
push eax
lea ecx, [ebp - 0x20]
call fcn.0043efe0
lea ecx, [ebp - 0x38]
call fcn.0043ef40
cmp dword [ebp - 0x10], ebx
je 0x4360b6
mov edx, esi
lea ecx, [ebp - 0x98]
call fcn.00435c10
cmp dword [ebp - 0x88], ebx
je 0x43625e
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043f080
test al, al
jne 0x43625e
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x98]
call fcn.0043f6f0
test al, al
jne 0x43625e
push 3
push 1
push esi
lea ecx, [ebp - 0x344]
call fcn.0044d1d0
mov ecx, esi
call fcn.004362a0
test al, al
jne 0x4360d3
lea ecx, [ebp - 0x344]
xor bl, bl
call fcn.0044d520
jmp 0x436260
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043f900
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00435c10
push eax
lea ecx, [ebp - 0x20]
call fcn.0043efe0
lea ecx, [ebp - 0x38]
call fcn.0043ef40
lea ecx, [ebp - 0x68]
call fcn.0043ef40
cmp dword [ebp - 0x10], ebx
jne 0x436008
lea ecx, [ebp - 0x20]
xor bl, bl
call fcn.0043ef40
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x50]
call fcn.0043ee10
mov ecx, esi
call fcn.004362c0
push esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 0x34c], al
mov byte [ebp - 0x345], 1
call fcn.0043ee10
mov ecx, edi
call fcn.004362c0
test al, al
je 0x436120
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call fcn.0043f900
push eax
lea ecx, [ebp - 0x80]
call fcn.0043efe0
lea ecx, [ebp - 0x68]
call fcn.0043ef40
cmp dword [ebp - 0x40], 0
je 0x43622f
xor eax, eax
mov dword [ebp - 0x24], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
call fcn.0041b960
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x80]
call fcn.0043f0d0
test al, al
je 0x436172
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x80]
call fcn.0043f6f0
test al, al
je 0x436252
cmp byte [ebp - 0x34c], 0
je 0x4361a9
lea ecx, [ebp - 0x38]
call fcn.004362c0
test al, al
jne 0x4361d2
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4361d2
test bl, 2
je 0x4361cb
and ebx, 0xfffffffd
jmp 0x4361c0
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x50]
call fcn.00437590
test al, al
jne 0x4361d2
test bl, 4
je 0x4361cb
and ebx, 0xfffffffb
lea ecx, [ebp - 0x3fc]
call fcn.0044bd90
mov byte [ebp - 0x345], 0
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x344]
call fcn.0044d640
push eax
lea ecx, [ebp - 0x50]
call fcn.0043efe0
lea ecx, [ebp - 0x68]
call fcn.0043ef40
cmp dword [ebp - 0x40], 0
je 0x43621a
lea eax, [ebp - 0x64c]
push eax
lea ecx, [ebp - 0x344]
call fcn.0044d5e0
mov eax, dword [eax]
shr eax, 4
and eax, 0xffffff01
mov dword [ebp - 0x34c], eax
lea ecx, [ebp - 0x38]
call fcn.0043ef40
cmp byte [ebp - 0x345], 0
jne 0x436120
mov bl, byte [ebp - 0x345]
lea ecx, [ebp - 0x80]
call fcn.0043ef40
lea ecx, [ebp - 0x50]
call fcn.0043ef40
lea ecx, [ebp - 0x344]
call fcn.0044d520
jmp 0x436260
lea ecx, [ebp - 0x38]
xor bl, bl
call fcn.0043ef40
jmp 0x436235
xor bl, bl
lea ecx, [ebp - 0x98]
call fcn.0043ef40
lea ecx, [ebp - 0x20]
call fcn.0043ef40
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004cb8a3
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.004cb8a3
mov esp, ebp
pop ebp
ret