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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d8ad1
mov eax, dword fs:[0]
push eax
sub esp, 0x554
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 - 0x55c], 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.Config.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 0x40ca40
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x560], 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 0x40c714
push 0x7ae4ec
call fcn.0068d914
add esp, 4
cmp dword [0x7ae4ec], 0xffffffff
jne 0x40c714
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 - 0x558], esi
mov byte [ebp - 4], 1
cmp dword [esi - 4], 1
jle 0x40c74c
push dword [esi - 0xc]
lea ecx, [ebp - 0x558]
call fcn.00406e20
mov esi, dword [ebp - 0x558]
push esi
lea eax, [ebp - 0x560]
push str._sConfig.ini
push eax
call fcn.00407190
add esp, 0xc
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40c77d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x560]
lea eax, [ebp - 0x554]
push 0x770cec
push esi
push eax
call fcn.006a0140
add esp, 0xc
test eax, eax
je 0x40c7a3
xor edi, edi
jmp 0x40c9fd
mov eax, dword [ebp - 0x55c]
mov edi, dword [edi + 0x4c]
mov eax, dword [eax + 0x50]
cmp edi, eax
je 0x40c7d7
mov esi, eax
mov ecx, edi
call fcn.0040ca50
add edi, 0x30
cmp edi, esi
jne 0x40c7b5
mov edi, dword [ebp - 0x55c]
mov esi, dword [ebp - 0x560]
mov eax, dword [edi + 0x4c]
mov dword [edi + 0x50], eax
jmp 0x40c7dd
mov edi, dword [ebp - 0x55c]
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 0x40c9d3
lea eax, [ebp - 0x110]
mov ecx, edi
push eax
push dword [ebp - 0x554]
call fcn.0040cae0
test eax, eax
jne 0x40c9ab
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 word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c880
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 0x40c8c4
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x538]
call fcn.0040d880
lea eax, [edi + 0x4c]
mov edi, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x40c91e
lea eax, [ebp - 0x550]
mov dword [ebp - 0x558], 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 edi, dword [ebp - 0x55c]
add dword [edi + 0x50], 0x30
jmp 0x40c933
lea ecx, [ebp - 0x550]
push ecx
push edi
mov ecx, eax
call fcn.0040da00
mov edi, dword [ebp - 0x55c]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x524]
cmp ecx, 0xf
jbe 0x40c971
mov edx, dword [ebp - 0x538]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c967
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ca3b
push ecx
push edx
call fcn.0068d77d
add esp, 8
mov ecx, dword [ebp - 0x53c]
cmp ecx, 0xf
jbe 0x40c9ab
mov edx, dword [ebp - 0x550]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c9a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ca3b
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 0x40c814
push dword [ebp - 0x554]
call fcn.006a065f
add esp, 4
cmp dword [edi + 4], 0x400
jge 0x40c9f8
mov dword [edi + 4], 0x400
mov dword [edi + 8], 0x300
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 0x40ca1c
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