Function at 0x40ca80
Capabilities:
Get common file path
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x44ab6b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x465ac0]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
mov eax, dword [0x465ac0]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24c]
push 0x20a
lea ebx, [edi + 8]
push 0
push ebx
mov dword [esp + 0x18], eax
mov dword [edi], 1
mov dword [edi + 4], 0
call fcn.00435330
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
mov dword [esp + 0x244], ecx
call fcn.0040d400
test eax, eax
je 0x40cb7e
xor edx, edx
push 0x208
push edx
lea eax, [esp + 0x36]
push eax
mov word [esp + 0x38], dx
call fcn.00435330
add esp, 0xc
push 0x104
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40cb50
push 0x459db4
lea edx, [esp + 0x30]
push 0x105
push edx
call fcn.00431b83
add esp, 0xc
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cb57
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x30]
lea esi, [esp + 0x14]
call fcn.00401680
mov esi, 8
jmp 0x40cc44
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x36]
push ecx
mov word [esp + 0x38], ax
call fcn.00435330
add esp, 0xc
push 0
push 5
lea edx, [esp + 0x34]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40cbc4
push 0x459dbc
lea eax, [esp + 0x30]
push 0x104
push eax
call fcn.004321b6
add esp, 0xc
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
jmp 0x40cbd0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cbd0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x30]
lea esi, [esp + 0x14]
call fcn.00401680
push 1
mov eax, 0x458c54
mov ecx, esi
call fcn.0040be60
mov esi, 8
push esi
mov eax, str.Solidify
lea ecx, [esp + 0x14]
call fcn.0040be60
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], esi
jae 0x40cc1d
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00432ad6
add esp, 8
cmp eax, 0xffffffff
jne 0x40cc44
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], esi
jae 0x40cc3b
lea eax, [esp + 0x14]
push eax
call fcn.00432d2b
add esp, 4
push 1
mov eax, 0x458c54
lea ecx, [esp + 0x14]
call fcn.0040be60
push 4
mov eax, str.slog
lea ecx, [esp + 0x14]
call fcn.0040be60
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], esi
jae 0x40cc72
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00432ad6
add esp, 8
cmp eax, 0xffffffff
jne 0x40cc99
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], esi
jae 0x40cc90
lea eax, [esp + 0x14]
push eax
call fcn.00432d2b
add esp, 4
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], esi
jae 0x40cca7
lea eax, [esp + 0x14]
push eax
lea esi, [edi + 0x212]
push 0x105
push esi
call fcn.004321b6
mov ecx, dword [esp + 0x18]
push ecx
push esi
push str._s_s.log
push 0x105
push ebx
call fcn.00431b83
add esp, 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esp + 0x28], 8
jb 0x40cced
mov edx, dword [esp + 0x14]
push edx
call fcn.0041455c
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00430e7d
add esp, 0x23c
ret 4