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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d8a6b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
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.Config.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 0x40c594
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x7ae4ec]
cmp eax, dword [ecx + 8]
jle 0x40c38a
push 0x7ae4ec
call fcn.0068d914
add esp, 4
cmp dword [0x7ae4ec], 0xffffffff
jne 0x40c38a
call fcn.0040f780
push 0x6ea4a0
call fcn.0068dbb4
push 0x7ae4ec
call fcn.0068d8c3
add esp, 8
mov eax, dword [0x7ae544]
add eax, 0xfffffff0
push eax
call fcn.004066d0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x42c], esi
mov byte [ebp - 4], 1
cmp dword [esi - 4], 1
jle 0x40c3c2
push dword [esi - 0xc]
lea ecx, [ebp - 0x42c]
call fcn.00406e20
mov esi, dword [ebp - 0x42c]
push esi
lea eax, [ebp - 0x428]
push str._sConfig.ini
push eax
call fcn.00407190
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
add esp, 0xc
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c3f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x428]
lea eax, [ebp - 0x424]
push 0x770c34
push edi
push eax
call fcn.006a0140
add esp, 0xc
test eax, eax
je 0x40c41b
xor ebx, ebx
jmp 0x40c558
push 0
push 0
push dword [ebp - 0x424]
call fcn.006a04d0
push dword [ebx + 4]
push str._Width__d_n
push dword [ebp - 0x424]
call fcn.0040dea0
push dword [ebx + 8]
push str.Height__d_n
push dword [ebp - 0x424]
call fcn.0040dea0
push dword [ebx + 0xc]
push str.GraphicQuality__d_n
push dword [ebp - 0x424]
call fcn.0040dea0
push dword [ebx + 0x10]
push str.TextureQuality__d_n
push dword [ebp - 0x424]
call fcn.0040dea0
push dword [ebx + 0x14]
push str.WindowMode__d_n
push dword [ebp - 0x424]
call fcn.0040dea0
xor eax, eax
add esp, 0x48
cmp dword [ebx + 0x18], eax
setne al
push eax
push str.VSync__d_n
push dword [ebp - 0x424]
call fcn.0040dea0
push dword [ebx + 0x24]
push str.EffectQuality__d_n
push dword [ebp - 0x424]
call fcn.0040dea0
movss xmm0, dword [ebx + 0x28]
add esp, 0x10
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str.EffectViewRange__.1f_n
push dword [ebp - 0x424]
call fcn.0040dea0
push dword [ebx + 0x2c]
push str.CameraFar__d_n
push dword [ebp - 0x424]
call fcn.0040dea0
xor eax, eax
cmp dword [ebx + 0x20], eax
setne al
push eax
push str.UseDX11__d_n
push dword [ebp - 0x424]
call fcn.0040dea0
mov esi, dword [ebx + 0x4c]
add esp, 0x28
cmp esi, dword [ebx + 0x50]
je 0x40c542
nop
cmp dword [esi + 0x2c], 0xf
lea eax, [esi + 0x18]
jbe 0x40c51b
mov eax, dword [eax]
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x40c525
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 + 0x50]
jne 0x40c510
push dword [ebp - 0x424]
call fcn.006a065f
add esp, 4
mov ebx, 1
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x40c574
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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