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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49915c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
mov dword [ebp - 0xe4], 0
mov eax, dword [0x4d0c34]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [0x4d1438]
cmp eax, dword [edx + 4]
jle 0x454bed
push 0x4d1438
call fcn.0041c44b
add esp, 4
cmp dword [0x4d1438], 0xffffffff
jne 0x454bed
movzx ecx, byte [ebp - 0x16]
push ecx
mov ecx, 0x4d1420
call fcn.0041d040
mov ecx, 0x4d1420
call fcn.00423850
push 0x49a410
call fcn.0041c327
add esp, 4
push 0x4d1438
call fcn.0041c401
add esp, 4
mov edx, dword [0x4d1430]
mov dword [ebp - 0x7c], edx
cmp dword [ebp - 0x7c], 0
jne 0x454c05
mov dword [ebp - 0x3c], 1
jmp 0x454c0c
mov dword [ebp - 0x3c], 0
mov al, byte [ebp - 0x3c]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x454fe2
push 0
lea edx, [ebp - 0x14c]
push edx
call fcn.0041f290
add esp, 8
mov dword [ebp - 4], 0
movzx eax, byte [ebp - 0x17]
push eax
lea ecx, [ebp - 0x134]
call fcn.0041d040
lea ecx, [ebp - 0x134]
call fcn.00423850
mov byte [ebp - 4], 1
movzx ecx, byte [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x11c]
call fcn.0041d040
lea ecx, [ebp - 0x11c]
call fcn.00423850
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x11c]
push edx
push 0
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], 8
jb 0x454ca7
mov dword [ebp - 0x40], 1
jmp 0x454cae
mov dword [ebp - 0x40], 0
mov cl, byte [ebp - 0x40]
mov byte [ebp - 0xe], cl
movzx edx, byte [ebp - 0xe]
test edx, edx
je 0x454cca
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x88], ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe8], esp
mov edx, dword [ebp - 0x88]
push edx
call fcn.0040dd70
call fcn.00420210
add esp, 0x28
push str._slog.ini
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x164]
push ecx
call fcn.0040c0e0
add esp, 0xc
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x14], 8
jb 0x454d50
mov dword [ebp - 0x48], 1
jmp 0x454d57
mov dword [ebp - 0x48], 0
mov al, byte [ebp - 0x48]
mov byte [ebp - 0xf], al
movzx ecx, byte [ebp - 0xf]
test ecx, ecx
je 0x454d79
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x14], 8
jb 0x454daf
mov dword [ebp - 0x50], 1
jmp 0x454db6
mov dword [ebp - 0x50], 0
mov cl, byte [ebp - 0x50]
mov byte [ebp - 0x10], cl
movzx edx, byte [ebp - 0x10]
test edx, edx
je 0x454dd8
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0xa8], ecx
push 1
push 0x4d1420
mov edx, dword [ebp - 0xa4]
push edx
mov eax, dword [ebp - 0xa8]
push eax
call fcn.0041fb10
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x164]
call fcn.00423720
mov dword [ebp - 0x2c], 0x4d1420
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x14], 8
jb 0x454e38
mov dword [ebp - 0x58], 1
jmp 0x454e3f
mov dword [ebp - 0x58], 0
mov al, byte [ebp - 0x58]
mov byte [ebp - 0x11], al
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x454e61
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x454fb2
movzx edx, byte [ebp - 0x19]
push edx
lea ecx, [ebp - 0x104]
call fcn.0041d040
lea ecx, [ebp - 0x104]
call fcn.00423850
mov byte [ebp - 4], 4
push 0
push 0
push 0
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x30], 0x4d1420
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x14], 8
jb 0x454ed6
mov dword [ebp - 0x60], 1
jmp 0x454edd
mov dword [ebp - 0x60], 0
mov al, byte [ebp - 0x60]
mov byte [ebp - 0x12], al
movzx ecx, byte [ebp - 0x12]
test ecx, ecx
je 0x454eff
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xec], esp
mov edx, dword [ebp - 0xc0]
push edx
call fcn.0040dd70
call fcn.00420210
add esp, 0x28
lea eax, [ebp - 0x104]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x14], 8
jb 0x454f54
mov dword [ebp - 0x68], 1
jmp 0x454f5b
mov dword [ebp - 0x68], 0
mov al, byte [ebp - 0x68]
mov byte [ebp - 0x13], al
movzx ecx, byte [ebp - 0x13]
test ecx, ecx
je 0x454f7d
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], eax
push 0
mov ecx, dword [ebp - 0xcc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x104]
call fcn.00423720
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11c]
call fcn.00423720
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.00423720
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.00423720
mov edx, dword [0x4d1430]
mov dword [ebp - 0xd0], edx
cmp dword [ebp - 0xd0], 0
jne 0x455000
mov dword [ebp - 0x70], 1
jmp 0x455007
mov dword [ebp - 0x70], 0
mov al, byte [ebp - 0x70]
mov byte [ebp - 0x14], al
movzx ecx, byte [ebp - 0x14]
test ecx, ecx
jne 0x45509b
lea edx, [ebp + 0xc]
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0x38], 0x4d1420
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x14], 8
jb 0x455041
mov dword [ebp - 0x74], 1
jmp 0x455048
mov dword [ebp - 0x74], 0
mov dl, byte [ebp - 0x74]
mov byte [ebp - 0x15], dl
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x45506a
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0xd8]
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0xdc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xe0]
push edx
call fcn.004550b0
add esp, 0xc
jmp 0x45509e
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret