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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d8b71
mov eax, dword fs:[0]
push eax
sub esp, 0x56c
mov eax, dword [0x79a200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x558], edi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x110]
push 0x100
push 0
push eax
mov dword [ebp - 0x554], 0
call fcn.00690e10
push 0x208
lea eax, [ebp - 0x318]
push 0
push eax
call fcn.00690e10
push 0x208
lea eax, [ebp - 0x520]
push 0
push eax
call fcn.00690e10
add esp, 0x24
lea eax, [ebp - 0x520]
push 0
push 5
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.DragonNest
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x318]
push 0x770bb8
push eax
call fcn.0040d9b0
lea eax, [ebp - 0x318]
push eax
call fcn.0069ff87
push str.DragonNest
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x318]
push str._s_sConfig
push eax
call fcn.0040d9b0
lea eax, [ebp - 0x318]
push eax
call fcn.0069ff87
push str.EthernumConfig.ini
push str.DragonNest
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x318]
push str._s_sConfig_s
push eax
call fcn.0040d9b0
add esp, 0x3c
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x40d7a6
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x560], eax
lea eax, [ebp - 0x318]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x40d1db
movzx eax, ax
lea ecx, [ebp - 0x560]
push eax
call fcn.00406a60
jmp 0x40d206
lea ecx, [ebp - 0x318]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d1e4
sub ecx, edx
lea eax, [ebp - 0x318]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x560]
call fcn.00406bf0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x554]
mov esi, dword [ebp - 0x560]
push 0x770cec
push esi
push eax
call fcn.006a0140
add esp, 0xc
test eax, eax
je 0x40d233
xor edi, edi
jmp 0x40d763
lea eax, [edi + 0x58]
mov edi, dword [eax]
mov dword [ebp - 0x564], eax
mov eax, dword [eax + 4]
cmp edi, eax
je 0x40d266
mov esi, eax
mov ecx, edi
call fcn.0040ca50
add edi, 0x30
cmp edi, esi
jne 0x40d247
mov ecx, dword [ebp - 0x564]
mov esi, dword [ebp - 0x560]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
push 0
push 0
push dword [ebp - 0x554]
call fcn.006a04d0
push 0x100
lea eax, [ebp - 0x110]
push eax
push 0x770cf4
push dword [ebp - 0x554]
call fcn.0040de50
add esp, 0x1c
cmp eax, 1
jne 0x40d750
nop dword [eax]
lea ecx, [ebp - 0x110]
mov eax, str.UseVulkan
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d2d0
test dl, dl
je 0x40d2cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d2d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d2b0
xor eax, eax
jmp 0x40d2d5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40d317
mov dword [ebp - 0x568], eax
lea eax, [ebp - 0x568]
push eax
push 0x770d00
push dword [ebp - 0x554]
call fcn.0040de50
mov ecx, dword [ebp - 0x558]
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0x568], eax
setne al
mov dword [ecx + 0x30], eax
mov eax, 1
jmp 0x40d5ab
lea ecx, [ebp - 0x110]
mov eax, str.MaximumZoom
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d342
test dl, dl
je 0x40d33e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d342
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d322
xor eax, eax
jmp 0x40d347
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40d372
mov eax, dword [ebp - 0x558]
add eax, 0x34
push eax
push 0x770e74
push dword [ebp - 0x554]
call fcn.0040de50
add esp, 0xc
mov eax, 1
jmp 0x40d5ab
lea ecx, [ebp - 0x110]
mov eax, str.CameraShake
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d3a0
test dl, dl
je 0x40d39c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d3a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d380
xor eax, eax
jmp 0x40d3a5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40d3e7
mov dword [ebp - 0x56c], eax
lea eax, [ebp - 0x56c]
push eax
push 0x770d00
push dword [ebp - 0x554]
call fcn.0040de50
mov ecx, dword [ebp - 0x558]
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0x56c], eax
setne al
mov dword [ecx + 0x38], eax
mov eax, 1
jmp 0x40d5ab
lea ecx, [ebp - 0x110]
mov eax, str.CinematicCamera
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d412
test dl, dl
je 0x40d40e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d412
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d3f2
xor eax, eax
jmp 0x40d417
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40d459
mov dword [ebp - 0x570], eax
lea eax, [ebp - 0x570]
push eax
push 0x770d00
push dword [ebp - 0x554]
call fcn.0040de50
mov ecx, dword [ebp - 0x558]
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0x570], eax
setne al
mov dword [ecx + 0x3c], eax
mov eax, 1
jmp 0x40d5ab
lea ecx, [ebp - 0x110]
mov eax, str.RadialBlur
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d484
test dl, dl
je 0x40d480
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d484
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d464
xor eax, eax
jmp 0x40d489
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40d4cb
mov dword [ebp - 0x574], eax
lea eax, [ebp - 0x574]
push eax
push 0x770d00
push dword [ebp - 0x554]
call fcn.0040de50
mov ecx, dword [ebp - 0x558]
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0x574], eax
setne al
mov dword [ecx + 0x40], eax
mov eax, 1
jmp 0x40d5ab
lea ecx, [ebp - 0x110]
mov eax, str.DiscordRPC
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d4f6
test dl, dl
je 0x40d4f2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d4f6
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d4d6
xor eax, eax
jmp 0x40d4fb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40d53a
mov dword [ebp - 0x578], eax
lea eax, [ebp - 0x578]
push eax
push 0x770d00
push dword [ebp - 0x554]
call fcn.0040de50
mov ecx, dword [ebp - 0x558]
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0x578], eax
setne al
mov dword [ecx + 0x44], eax
mov eax, 1
jmp 0x40d5ab
lea ecx, [ebp - 0x110]
mov eax, str.FastPetLoot
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d565
test dl, dl
je 0x40d561
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d565
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d545
xor eax, eax
jmp 0x40d56a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40d5a9
mov dword [ebp - 0x55c], eax
lea eax, [ebp - 0x55c]
push eax
push 0x770d00
push dword [ebp - 0x554]
call fcn.0040de50
mov ecx, dword [ebp - 0x558]
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0x55c], eax
setne al
mov dword [ecx + 0x48], eax
mov eax, 1
jmp 0x40d5ab
xor eax, eax
test eax, eax
jne 0x40d728
xorps xmm0, xmm0
mov dword [ebp - 0x540], eax
movups xmmword [ebp - 0x550], xmm0
mov dword [ebp - 0x53c], 0xf
movups xmmword [ebp - 0x538], xmm0
mov byte [ebp - 0x550], al
mov dword [ebp - 0x528], eax
mov dword [ebp - 0x524], 0xf
mov byte [ebp - 0x538], al
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 2
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d600
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x550]
call fcn.0040d880
push 0x100
lea eax, [ebp - 0x110]
push eax
push 0x770cf4
push dword [ebp - 0x554]
call fcn.0040de50
lea ecx, [ebp - 0x110]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d644
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x538]
call fcn.0040d880
mov eax, dword [ebp - 0x564]
mov edi, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x40d6a1
lea eax, [ebp - 0x550]
mov dword [ebp - 0x55c], edi
push eax
mov ecx, edi
call fcn.0040dce0
lea eax, [ebp - 0x538]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x18]
call fcn.0040dce0
mov eax, dword [ebp - 0x564]
add dword [eax + 4], 0x30
jmp 0x40d6b0
lea ecx, [ebp - 0x550]
push ecx
push edi
mov ecx, eax
call fcn.0040da00
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x524]
cmp ecx, 0xf
jbe 0x40d6ee
mov edx, dword [ebp - 0x538]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d6e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d7a1
push ecx
push edx
call fcn.0068d77d
add esp, 8
mov ecx, dword [ebp - 0x53c]
cmp ecx, 0xf
jbe 0x40d728
mov edx, dword [ebp - 0x550]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d71e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d7a1
push ecx
push edx
call fcn.0068d77d
add esp, 8
push 0x100
lea eax, [ebp - 0x110]
push eax
push 0x770cf4
push dword [ebp - 0x554]
call fcn.0040de50
add esp, 0x10
cmp eax, 1
je 0x40d2a0
push dword [ebp - 0x554]
call fcn.006a065f
add esp, 4
mov edi, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40d782
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0068d76f
mov esp, ebp
pop ebp
ret 4
call fcn.006944a3
push 0x80004005
call fcn.00407310
int3