Function at 0x40dae0
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x490302
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x4b99e4]
xor eax, esp
mov dword [esp + 0x2b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b99e4]
xor eax, esp
push eax
lea eax, [esp + 0x2d0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2e0]
mov ebp, dword [esp + 0x2e8]
mov edi, ecx
mov ecx, dword [esp + 0x2e4]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
cmp dword [edi + 0x140], ebx
je 0x40db4c
lea eax, [ebx + 1]
jmp 0x40e075
push 0x3f
push 0x497a4e
lea ecx, [esp + 0x1c]
mov dword [edi + 0x140], 1
call fcn.0040aed0
push eax
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x2e0], ebx
call fcn.00479228
add esp, 8
lea ecx, [esp + 0x28]
call fcn.00406c00
lea ecx, [esp + 0x14]
mov dword [esp + 0x2d8], 0xffffffff
call fcn.00406c00
push 0x498004
push 2
call fcn.0044f66c
add esp, 8
cmp dword [esp + 0x2ec], ebx
je 0x40dbcb
push 0x20
call fcn.00418a06
add esp, 4
cmp eax, ebx
je 0x40dbe3
mov dword [eax], vtable.SmpLog::CCSLock.0
mov dword [eax + 4], ebx
mov esi, eax
jmp 0x40dbe5
push 4
call fcn.00418a06
add esp, 4
cmp eax, ebx
je 0x40dbe3
mov dword [eax], vtable.SmpLog::CFackLock.0
mov esi, eax
jmp 0x40dbe5
xor esi, esi
mov eax, dword [edi + 0x144]
cmp esi, eax
je 0x40dbf8
push eax
call fcn.00418a35
add esp, 4
mov ecx, esi
mov dword [edi + 0x144], esi
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
push 0x208
lea eax, [esp + 0xc8]
push ebx
push eax
call fcn.0044c250
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc8]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 7
xor edx, edx
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], dx
mov dword [esp + 0x2d8], 1
cmp ebp, ebx
je 0x40dc98
push 0x497b54
push ebp
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x40dc98
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40dc71
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x94]
call fcn.00402d30
mov esi, 8
jmp 0x40dd69
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xor ecx, ecx
mov word [esp + 0xac], cx
mov ecx, eax
mov dword [esp + 0xc0], esi
mov dword [esp + 0xbc], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40dcc3
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0xb0]
call fcn.00402d30
push 1
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0xb4]
mov byte [esp + 0x2e4], 2
mov dword [esp + 0x20], 0x2e
call fcn.00407590
push eax
push ebx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0xb4]
call fcn.0040a910
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x98]
mov byte [esp + 0x2e4], 3
call fcn.00402a70
mov esi, 8
cmp dword [esp + 0x6c], esi
jb 0x40dd48
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00418a35
add esp, 4
mov byte [esp + 0x2d8], 1
cmp dword [esp + 0xc0], esi
jb 0x40dd69
mov edx, dword [esp + 0xac]
push edx
call fcn.00418a35
add esp, 4
cmp dword [edi + 0x14], ebx
jne 0x40de04
push 0x208
lea eax, [esp + 0xc8]
push ebx
push eax
call fcn.0044c250
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebx
jne 0x40ddb8
lea ecx, [esp + 0xc4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x40ddcc
mov ecx, dword [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0xcc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0xc4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40dde5
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xc8]
push ecx
mov ecx, edi
call fcn.00402d30
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x2c]
push ecx
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
lea edx, [esp + 0x20]
push edx
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ebp, dword [esp + 0x90]
cmp dword [esp + 0xa4], esi
jae 0x40de5e
lea ebp, [esp + 0x90]
cmp dword [edi + 0x18], esi
jb 0x40de68
mov esi, dword [edi + 4]
jmp 0x40de6b
lea esi, [edi + 4]
movzx eax, word [esp + 0x38]
movzx ecx, word [esp + 0x36]
movzx edx, word [esp + 0x34]
push eax
movzx eax, word [esp + 0x36]
push ecx
movzx ecx, word [esp + 0x36]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebp
push esi
lea edx, [esp + 0xe4]
push str._s_s__d___02d_02d__02d_02d_02d_.log
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
lea eax, [esp + 0xc4]
mov byte [esp + 0x2d8], 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ded0
sub eax, edx
lea ecx, [esp + 0x70]
push ecx
sar eax, 1
push eax
lea edx, [esp + 0xcc]
push edx
mov ecx, edi
call fcn.00409590
mov eax, dword [esp + 0x74]
mov ebp, 0x10
cmp dword [esp + 0x88], ebp
jae 0x40df0a
lea eax, [esp + 0x74]
push 0x40
push 0xa
lea esi, [edi + 0x1c]
push eax
lea ecx, [esi + 0xc]
call fcn.0040b4e0
test eax, eax
jne 0x40df3b
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 8]
add ecx, esi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x40df34
or eax, 4
push ebx
push eax
call fcn.0040b040
push 0x3f
push 0x497a4e
lea ecx, [esp + 0x20]
call fcn.0040aed0
mov edx, dword [esi]
push eax
mov eax, dword [edx + 4]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [eax + edi + 0x1c]
mov byte [esp + 0x2e0], 5
call fcn.00408290
lea ecx, [esp + 0x1c]
call fcn.00406c00
lea ecx, [esp + 0x18]
mov byte [esp + 0x2d8], 4
call fcn.00406c00
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
test byte [edx + edi + 0x24], 6
je 0x40dfdd
cmp dword [esp + 0x88], ebp
jb 0x40dfa3
mov eax, dword [esp + 0x74]
push eax
call fcn.00418a35
add esp, 4
cmp dword [esp + 0xa4], 8
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
jb 0x40dfd3
mov ecx, dword [esp + 0x90]
push ecx
call fcn.00418a35
add esp, 4
mov eax, 0x80004005
jmp 0x40e075
push 0x208
lea edx, [esp + 0xc8]
push ebx
push edx
call fcn.0044c250
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0x104
lea eax, [esp + 0xc8]
push eax
push ebx
push ecx
call sub.PSAPI.DLL_GetModuleFileNameExW
lea edx, [esp + 0xc4]
push edx
lea ecx, [edi + 0x24]
call fcn.0040d3b0
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040d990
mov ecx, esi
call fcn.0040c6d0
cmp dword [esp + 0x88], ebp
jb 0x40e043
mov eax, dword [esp + 0x74]
push eax
call fcn.00418a35
add esp, 4
cmp dword [esp + 0xa4], 8
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
jb 0x40e073
mov ecx, dword [esp + 0x90]
push ecx
call fcn.00418a35
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.0044c23d
add esp, 0x2c8
ret 0x10