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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bc14
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xdc]
call fcn.0040db90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0xc4], ecx
mov ecx, dword [ebp - 0xc4]
call fcn.00436880
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
push 0x5c
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xdc]
call fcn.00422d10
push eax
call fcn.00436800
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x436a54
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xfc], ecx
lea edx, [ebp - 0x1d]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x12c]
call fcn.004368b0
mov ecx, dword [ebp - 0x18]
or ecx, 1
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x12c]
push edx
lea ecx, [ebp - 0x64]
call fcn.0041e1a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
call fcn.004230c0
jmp 0x436abe
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xf8], eax
lea ecx, [ebp - 0x1e]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0xdc]
push ecx
lea ecx, [ebp - 0x114]
call fcn.004368b0
mov edx, dword [ebp - 0x18]
or edx, 2
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x64]
call fcn.0041e1a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x114]
call fcn.004230c0
jmp 0x436ad4
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, 1
test edx, edx
jne 0x4369ca
lea eax, [ebp - 0x64]
mov dword [ebp - 0x70], eax
xor ecx, ecx
imul edx, ecx, 0x18
mov eax, dword [ebp - 0x70]
add edx, dword [eax]
mov dword [ebp - 0x74], edx
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x14], 8
jb 0x436b05
mov dword [ebp - 0x38], 1
jmp 0x436b0c
mov dword [ebp - 0x38], 0
mov cl, byte [ebp - 0x38]
mov byte [ebp - 0xd], cl
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x436b28
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
push edx
lea ecx, [ebp - 0xf4]
call fcn.0040db90
mov byte [ebp - 4], 4
lea eax, [ebp - 0xf4]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x14], 8
jb 0x436b68
mov dword [ebp - 0x40], 1
jmp 0x436b6f
mov dword [ebp - 0x40], 0
mov al, byte [ebp - 0x40]
mov byte [ebp - 0xe], al
movzx ecx, byte [ebp - 0xe]
test ecx, ecx
je 0x436b91
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x436d79
mov dword [ebp - 0x1c], 1
jmp 0x436bcd
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x64]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x48]
mov eax, dword [ecx + 4]
sub eax, dword [edx]
cdq
mov ecx, 0x18
idiv ecx
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x90]
jge 0x436d79
push 0x49acac
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x15c]
push ecx
call fcn.0040be10
add esp, 0xc
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0xa0], edx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x64]
mov dword [ebp - 0x98], eax
imul ecx, dword [ebp - 0x1c], 0x18
mov edx, dword [ebp - 0x98]
add ecx, dword [edx]
mov dword [ebp - 0x9c], ecx
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
lea edx, [ebp - 0x144]
push edx
call fcn.004034f0
add esp, 0xc
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xf4]
call fcn.00403df0
lea ecx, [ebp - 0x144]
call fcn.004230c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x15c]
call fcn.004230c0
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x14], 8
jb 0x436cb7
mov dword [ebp - 0x4c], 1
jmp 0x436cbe
mov dword [ebp - 0x4c], 0
mov cl, byte [ebp - 0x4c]
mov byte [ebp - 0xf], cl
movzx edx, byte [ebp - 0xf]
test edx, edx
je 0x436ce0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0xb0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x436d74
lea eax, [ebp - 0xf4]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x14], 8
jb 0x436d27
mov dword [ebp - 0x54], 1
jmp 0x436d2e
mov dword [ebp - 0x54], 0
mov al, byte [ebp - 0x54]
mov byte [ebp - 0x10], al
movzx ecx, byte [ebp - 0x10]
test ecx, ecx
je 0x436d50
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], eax
push 0
mov ecx, dword [ebp - 0xbc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x436bc4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf4]
call fcn.004230c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.004377f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
call fcn.004230c0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret