Function at 0x4235a0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x500
mov eax, dword [0x50545c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x500], ecx
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004931a0
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [ebp - 0x500]
add eax, 0x44
mov dword [ebp - 0x43c], eax
lea ecx, [ebp - 0x218]
test ecx, ecx
jne 0x423617
mov dword [ebp - 0x438], 0
jmp 0x42362c
lea edx, [ebp - 0x218]
push edx
call fcn.004939fc
add esp, 4
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x438]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x43c]
call fcn.00412d00
mov edx, dword [ebp - 0x500]
add edx, 0x44
mov dword [ebp - 0x444], edx
mov eax, str.ESTLOG_
test eax, eax
jne 0x423669
mov dword [ebp - 0x440], 0
jmp 0x42367c
push str.ESTLOG_
call fcn.004939fc
add esp, 4
mov dword [ebp - 0x440], eax
mov ecx, dword [ebp - 0x440]
push ecx
push str.ESTLOG_
mov ecx, dword [ebp - 0x444]
call fcn.00411880
mov edx, dword [ebp - 0x500]
mov eax, dword [edx + 0x44]
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 0x448]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4236e3
mov edx, dword [ebp - 0x500]
mov eax, dword [edx + 0x44]
mov dword [ebp - 0x44c], eax
push 0
mov ecx, dword [ebp - 0x44c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4236e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x423900
mov edx, dword [ebp - 0x500]
add edx, 0x44
mov dword [ebp - 0x45c], edx
mov eax, dword [ebp - 0x500]
add eax, 0x40
mov dword [ebp - 0x458], eax
mov ecx, dword [ebp - 0x45c]
mov edx, dword [ecx]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x450], eax
mov ecx, dword [ebp - 0x45c]
mov edx, dword [ecx]
mov dword [ebp - 0x454], edx
mov eax, dword [ebp - 0x450]
push eax
mov ecx, dword [ebp - 0x454]
push ecx
mov ecx, dword [ebp - 0x458]
call fcn.00411880
xor edx, edx
mov word [ebp - 0x420], dx
push 0x206
push 0
lea eax, [ebp - 0x41e]
push eax
call fcn.004931a0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 8], 0
mov dword [ebp - 0x434], 0
push 0x5c
lea edx, [ebp - 0x420]
push edx
call fcn.00494159
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x423819
push 0x2e
lea eax, [ebp - 0x420]
push eax
call fcn.00494159
add esp, 8
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x4237c5
xor ecx, ecx
mov edx, dword [ebp - 0x434]
mov word [edx], cx
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x500]
add ecx, 0x3c
mov dword [ebp - 0x484], ecx
cmp dword [ebp - 8], 0
jne 0x4237ef
mov dword [ebp - 0x460], 0
jmp 0x423801
mov edx, dword [ebp - 8]
push edx
call fcn.004939fc
add esp, 4
mov dword [ebp - 0x460], eax
mov eax, dword [ebp - 0x460]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x484]
call fcn.00411880
jmp 0x423867
mov edx, dword [ebp - 0x500]
add edx, 0x44
mov dword [ebp - 0x4bc], edx
mov eax, 0x4d1934
test eax, eax
jne 0x42383d
mov dword [ebp - 0x488], 0
jmp 0x423850
push 0x4d1934
call fcn.004939fc
add esp, 4
mov dword [ebp - 0x488], eax
mov ecx, dword [ebp - 0x488]
push ecx
push 0x4d1934
mov ecx, dword [ebp - 0x4bc]
call fcn.00411880
lea edx, [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push str..log
movzx eax, word [ebp - 0x42a]
push eax
mov ecx, dword [ebp - 0x500]
mov edx, dword [ecx + 0x3c]
push edx
push str._s__d_s
mov eax, dword [ebp - 0x500]
add eax, 0x38
push eax
call fcn.00413630
add esp, 0x14
mov ecx, dword [ebp - 0x500]
add ecx, 0x38
mov dword [ebp - 0x4fc], ecx
mov edx, dword [ebp - 0x500]
add edx, 0x44
mov dword [ebp - 0x4f8], edx
mov eax, dword [ebp - 0x4fc]
mov ecx, dword [eax]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x4c0], edx
mov eax, dword [ebp - 0x4fc]
mov ecx, dword [eax]
mov dword [ebp - 0x4c4], ecx
mov edx, dword [ebp - 0x4c0]
push edx
mov eax, dword [ebp - 0x4c4]
push eax
mov ecx, dword [ebp - 0x4f8]
call fcn.00411880
xor ecx, ecx
jne 0x4235c0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0049318c
mov esp, ebp
pop ebp
ret