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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d8b10
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x79a200]
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
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x424], 0
call fcn.00690e10
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00690e10
add esp, 0x18
lea eax, [ebp - 0x420]
push 0
push 5
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.DragonNest
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x770bb8
push eax
call fcn.0040d9b0
lea eax, [ebp - 0x218]
push eax
call fcn.0069ff87
push str.DragonNest
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push str._s_sConfig
push eax
call fcn.0040d9b0
lea eax, [ebp - 0x218]
push eax
call fcn.0069ff87
push str.EthernumConfig.ini
push str.DragonNest
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push str._s_sConfig_s
push eax
call fcn.0040d9b0
add esp, 0x3c
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x40d07d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x40ced1
movzx eax, ax
lea ecx, [ebp - 0x428]
push eax
call fcn.00406a60
jmp 0x40cf02
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cee0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.00406bf0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x424]
mov edi, dword [ebp - 0x428]
push 0x770c34
push edi
push eax
call fcn.006a0140
add esp, 0xc
test eax, eax
je 0x40cf2f
xor esi, esi
jmp 0x40d045
push 0
push 0
push dword [ebp - 0x424]
call fcn.006a04d0
xor eax, eax
cmp dword [ebx + 0x30], eax
setne al
push eax
push str._UseVulkan__d_n
push dword [ebp - 0x424]
call fcn.0040dea0
cvttss2si eax, dword [ebx + 0x34]
push eax
push str.MaximumZoom__d_n
push dword [ebp - 0x424]
call fcn.0040dea0
xor eax, eax
cmp dword [ebx + 0x38], eax
setne al
push eax
push str.CameraShake__d_n
push dword [ebp - 0x424]
call fcn.0040dea0
xor eax, eax
cmp dword [ebx + 0x3c], eax
setne al
push eax
push str.CinematicCamera__d_n
push dword [ebp - 0x424]
call fcn.0040dea0
xor eax, eax
cmp dword [ebx + 0x40], eax
setne al
push eax
push str.RadialBlur__d_n
push dword [ebp - 0x424]
call fcn.0040dea0
xor eax, eax
add esp, 0x48
cmp dword [ebx + 0x44], eax
setne al
push eax
push str.DiscordRPC__d_n
push dword [ebp - 0x424]
call fcn.0040dea0
xor eax, eax
cmp dword [ebx + 0x48], eax
setne al
push eax
push str.FastPetLoot__d_n
push dword [ebp - 0x424]
call fcn.0040dea0
mov esi, dword [ebx + 0x58]
add esp, 0x18
cmp esi, dword [ebx + 0x5c]
je 0x40d032
nop dword [eax + eax]
cmp dword [esi + 0x2c], 0xf
lea eax, [esi + 0x18]
jbe 0x40d00b
mov eax, dword [eax]
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x40d015
mov ecx, dword [esi]
push eax
push ecx
push str._s__s_n
push dword [ebp - 0x424]
call fcn.0040dea0
add esi, 0x30
add esp, 0x10
cmp esi, dword [ebx + 0x5c]
jne 0x40d000
push dword [ebp - 0x424]
call fcn.006a065f
add esp, 4
mov esi, 1
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40d05d
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0068d76f
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00407310
int3