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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e821
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x5b41b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x593ed8
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
call fcn.00403af0
mov byte [ebp - 4], 1
movzx eax, word [ebp - 0x23a]
push eax
movzx eax, word [ebp - 0x23c]
push eax
movzx eax, word [ebp - 0x23e]
push eax
movzx eax, word [ebp - 0x240]
push eax
movzx eax, word [ebp - 0x248]
push eax
movzx eax, word [ebp - 0x246]
push eax
movzx eax, word [ebp - 0x242]
push eax
lea eax, [ebp - 0x21c]
push 0x593e00
push eax
call fcn.004023e0
add esp, 0x24
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x224]
push 0x593e3c
call fcn.00403af0
mov byte [ebp - 4], 2
call fcn.0041b71c
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x403f07
push 0x80004005
call fcn.00402310
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
xor eax, eax
mov byte [ebp - 4], 3
push 0x1fe
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00535230
add esp, 0xc
lea eax, [ebp - 0x214]
push 0
push 5
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x593e44
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
jmp 0x403f80
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403f80
sub ecx, edx
lea eax, [ebp - 0x214]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.004039f0
or edi, 0xffffffff
test esi, esi
je 0x4040a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0041b71c
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x403fd1
push 0x80004005
call fcn.00402310
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x218], eax
push 0
push 0
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 4
push eax
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea eax, [ebp - 0x218]
push dword [ebp - 0x24c]
test esi, esi
jne 0x404020
push esi
push dword [ebp + 8]
push str._s_succeed:___d:__s
jmp 0x404029
push esi
push dword [ebp + 8]
push str._s_failed_with_error__d:__s
push eax
call fcn.004023e0
add esp, 0x14
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.00404400
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.004047b0
mov byte [ebp - 4], 4
mov ecx, edi
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40407f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov ecx, edi
mov edx, dword [ebp - 0x218]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4040b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4040b6
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp + 8]
push dword [eax - 0xc]
push eax
call fcn.004046e0
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x238]
movdqu xmmword [ebp - 0x238], xmm0
call fcn.00427b2f
mov byte [ebp - 4], 6
mov esi, dword [0x5b548c]
call fcn.0041b71c
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
je 0x403efd
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24c], eax
push esi
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 7
push str.__d_
push eax
call fcn.004023e0
add esp, 0xc
mov dword [ebp - 0x218], 0
lea eax, [ebp - 0x220]
push 0x593ed4
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00404600
add esp, 0xc
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.00404400
add esp, 0xc
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 9
push ecx
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.00404400
add esp, 0xc
push str..txt
push eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0xa
push eax
call fcn.00404600
add esp, 0xc
mov byte [ebp - 4], 0xc
mov ecx, edi
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4041b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov ecx, edi
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4041db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov ecx, edi
mov edx, dword [ebp - 0x254]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4041fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x3001
push dword [ebp - 0x218]
lea ecx, [ebp - 0x238]
call fcn.00428055
test eax, eax
je 0x40423c
lea ecx, [ebp - 0x238]
call fcn.00427f74
test edx, edx
jne 0x404230
cmp eax, 0x100000
jb 0x404296
lea ecx, [ebp - 0x238]
inc esi
call fcn.00427e0f
mov byte [ebp - 4], 7
mov ecx, edi
mov edx, dword [ebp - 0x218]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40425f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov ecx, edi
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404282
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0041b71c
mov edx, eax
test edx, edx
jne 0x4040f6
jmp 0x403efd
lea ecx, [ebp - 0x238]
mov dword [0x5b548c], esi
call fcn.00404540
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004038d0
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.004074b0
mov esi, eax
add esp, 4
mov ecx, esi
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4042d0
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
lea ecx, [ebp - 0x238]
call fcn.004283bc
push esi
call fcn.0040ab71
add esp, 4
lea ecx, [ebp - 0x238]
call fcn.00427e0f
mov byte [ebp - 4], 7
mov ecx, edi
mov edx, dword [ebp - 0x218]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404320
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov ecx, edi
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404343
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 3
call fcn.00427ba5
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404375
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404398
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4043bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4043dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00532f97
mov esp, ebp
pop ebp
ret