Function at 0x403e60
Capabilities:
Create directory
Get common file path
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447ced
mov eax, dword fs:[0]
push eax
mov eax, 0x117c
call fcn.0043fb90
mov eax, dword [0x45636c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x410
lea eax, [ebp - 0x1060]
push 0
push eax
call fcn.0042f230
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x1060]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x1064]
push edx
lea ecx, [ebp - 0x1060]
call fcn.004058d0
lea eax, [ebp - 0x1060]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x410
lea ecx, [ebp - 0xc50]
push 0
push ecx
call fcn.0042f230
add esp, 0xc
push 0x44c660
lea edx, [ebp - 0x1060]
push edx
lea eax, [ebp - 0xc50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [0x45a1a0], 0
je 0x4044e8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0042b8de
mov ecx, dword [0x45a1a0]
mov eax, dword [ecx + 0x10]
add esp, 4
test eax, eax
je 0x4044e8
mov dword [ebp - 0x1068], eax
mov dword [ebp - 0x1078], 1
mov edi, edi
mov edx, dword [ebp - 0x1078]
push edx
lea eax, [ebp - 0x20]
push str.shortcut_d
push eax
call fcn.0042ad9c
add esp, 0xc
push 0
push 0
push 1
push 0
push 1
push 0xc0000000
lea ecx, [ebp - 0xc50]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jg 0x403fcc
lea eax, [esi + esi]
call fcn.00437d80
mov edi, esp
test edi, edi
je 0x403fcc
push esi
push edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
xor eax, eax
push ecx
push eax
push 3
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x403fce
xor eax, eax
lea edx, [ebp - 0xc50]
push edx
push 0
push str.time
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
mov eax, dword [0x458f04]
mov edx, dword [eax + 0xc]
mov ecx, 0x458f04
call edx
add eax, 0x10
mov dword [ebp - 0x107c], eax
push 0
mov byte [ebp - 4], 1
call fcn.0042bdb0
add esp, 4
push edx
push eax
push 0x44c684
lea edi, [ebp - 0x107c]
call fcn.004065d0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jg 0x404061
lea eax, [esi + esi]
call fcn.00437d80
mov edi, esp
test edi, edi
je 0x404061
push esi
push edi
push 0xffffffffffffffff
lea edx, [ebp - 0x20]
xor ecx, ecx
push edx
push ecx
push 3
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x404063
xor eax, eax
mov edi, dword [ebp - 0x107c]
lea ecx, [ebp - 0xc50]
push ecx
push edi
push str.time
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0
call fcn.0042bdb0
mov ecx, eax
add esp, 4
sub ecx, ebx
mov ebx, dword [ebp - 0x1068]
mov esi, edx
mov eax, 0
sbb esi, eax
mov eax, dword [ebx + 0x670]
cdq
cmp esi, edx
jl 0x4044c8
jg 0x4040b3
cmp ecx, eax
jb 0x4044c8
cmp dword [0x45a1a0], 0
je 0x404486
cmp dword [ebx], 0
je 0x404486
mov edx, dword [0x458f04]
mov eax, dword [edx + 0xc]
mov ecx, 0x458f04
call eax
add eax, 0x10
mov dword [ebp - 0x1070], eax
lea edx, [ebp - 0x1074]
lea ecx, [ebx + 0x404]
push edx
mov byte [ebp - 4], 2
call fcn.00405980
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x83e]
mov byte [ebp - 4], 3
push ecx
mov word [ebp - 0x840], ax
call fcn.0042f230
add esp, 0xc
push 0
push 0x10
lea edx, [ebp - 0x840]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [ebp - 0x1074]
push eax
lea ecx, [ebp - 0x840]
push ecx
push str._s_s.lnk
lea edi, [ebp - 0x1070]
call fcn.004065d0
lea esi, [ebx + 0x468]
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404160
sub eax, edx
je 0x404363
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x226]
push eax
mov word [ebp - 0x228], dx
call fcn.0042f230
add esp, 0xc
push 3
lea ecx, [ebp - 0x1184]
push esi
lea eax, [ebp - 0x1188]
mov dword [ebp - 0x1188], ecx
call fcn.00405e20
mov eax, dword [ebp - 0x1188]
push 0x104
lea edx, [ebp - 0x228]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp - 0x1188]
lea ecx, [ebp - 0x1184]
cmp eax, ecx
je 0x4041d9
push eax
call fcn.0042b160
add esp, 4
push str...conf_setting.cfg
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x430]
lea esi, [ebp - 0x228]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
jmp 0x404210
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x404230
movzx ecx, word [esi + eax]
test cx, cx
je 0x404230
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x404210
jmp 0x404234
test edx, edx
jne 0x404237
sub eax, 2
xor edx, edx
mov word [eax], dx
push str...conf
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea ecx, [ebp - 0x228]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea edx, [ebp - 0x1080]
push edx
lea ecx, [ebp - 0x430]
call fcn.004058d0
mov esi, eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1064]
add eax, 0xfffffff0
call fcn.00405f10
lea edi, [eax + 0x10]
mov dword [ebp - 0x106c], edi
lea eax, [ebp - 0x106c]
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.004067c0
lea eax, [edi - 0x10]
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1080]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edx, [ebx + 0x56c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4042f4
sub eax, esi
je 0x404359
push 3
lea ecx, [ebp - 0x1184]
push edx
lea eax, [ebp - 0x1188]
mov dword [ebp - 0x1188], ecx
call fcn.00405e20
mov byte [ebp - 4], 6
mov ebx, dword [ebp - 0x1070]
mov edi, dword [ebp - 0x1188]
push 0
push ebx
lea ecx, [ebp - 0x430]
call fcn.0041f3c0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1188]
lea edx, [ebp - 0x1184]
add esp, 8
cmp eax, edx
je 0x404395
push eax
call fcn.0042b160
add esp, 4
jmp 0x404395
lea edi, [ebp - 0x430]
mov ecx, edi
jmp 0x404384
mov eax, dword [ebp - 0x1064]
push str...conf_setting.cfg
push eax
lea ecx, [ebp - 0x638]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [ebp - 0x1064]
mov edi, ecx
mov ebx, dword [ebp - 0x1070]
push 1
push ebx
call fcn.0041f3c0
add esp, 8
push 0
push 0
push 1
push 0
push 1
push 0xc0000000
lea edx, [ebp - 0x638]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1068]
lea eax, [ebp - 0x1184]
push 3
add ecx, 4
mov dword [ebp - 0x1188], eax
push ecx
lea eax, [ebp - 0x1188]
call fcn.00405e20
mov eax, dword [ebp - 0x1188]
lea edx, [ebp - 0x638]
push edx
push eax
push str.linkurl
push str.config
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [ebp - 0x1188]
lea ecx, [ebp - 0x1184]
cmp eax, ecx
je 0x404412
push eax
call fcn.0042b160
add esp, 4
mov eax, dword [ebp - 0x1074]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x106c], esp
mov esi, esp
call fcn.00405f10
lea edx, [ebp - 0x1084]
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.0040e7f0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1074]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404460
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404480
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x1068]
inc dword [ebp - 0x1078]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x107c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 0x674]
mov dword [ebp - 0x1068], eax
test eax, eax
jne 0x403f50
jmp 0x4044e8
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1064]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404511
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x1198]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a9a5
mov esp, ebp
pop ebp
ret