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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x551aa8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x418], 0
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call sub.MSVCR100.dll_memset
add esp, 0x18
push 0
push 5
lea ecx, [ebp - 0x414]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x414]
push edx
push 0x54379c
lea edx, [ebp - 0x20c]
call fcn.0040a7b0
mov esi, dword [sym.imp.MSVCR100.dll__wmkdir]
lea eax, [ebp - 0x20c]
push eax
call esi
lea ecx, [ebp - 0x414]
push ecx
push str._sDragonNestConfig
lea edx, [ebp - 0x20c]
call fcn.0040a7b0
lea edx, [ebp - 0x20c]
push edx
call esi
push str.Config.ini
lea eax, [ebp - 0x414]
push eax
push str._sDragonNestConfig_s
lea edx, [ebp - 0x20c]
call fcn.0040a7b0
add esp, 0x24
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x41c]
call dword [0x511858]
mov edx, dword [ebp - 0x41c]
push 0x54382c
push edx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x409c90
lea ecx, [ebp - 0x41c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf32
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x418]
push ebx
push 0
push 0
push ecx
call dword [sym.imp.MSVCR100.dll_fseek]
mov edx, dword [edi + 4]
mov eax, dword [ebp - 0x418]
mov ebx, dword [sym.imp.MSVCR100.dll_fprintf]
push edx
push str._Width__d_n
push eax
call ebx
mov ecx, dword [edi + 8]
mov edx, dword [ebp - 0x418]
push ecx
push str.Height__d_n
push edx
call ebx
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x418]
push eax
push str.GraphicQuality__d_n
push ecx
call ebx
mov edx, dword [edi + 0x10]
mov eax, dword [ebp - 0x418]
push edx
push str.TextureQuality__d_n
push eax
call ebx
mov ecx, dword [edi + 0x64]
mov edx, dword [ebp - 0x418]
push ecx
push str.WindowMode__d_n
push edx
call ebx
mov ecx, dword [ebp - 0x418]
xor eax, eax
add esp, 0x48
cmp dword [edi + 0x18], eax
setne al
push eax
push str.VSync__d_n
push ecx
call ebx
mov eax, dword [ebp - 0x418]
lea edx, [edi + 0x24]
push edx
push str.Username__s_n
push eax
call ebx
mov edx, dword [ebp - 0x418]
lea ecx, [edi + 0x44]
push ecx
push str.Password__s_n
push edx
call ebx
mov ecx, dword [ebp - 0x418]
xor eax, eax
cmp dword [edi + 0x20], eax
setne al
push eax
push str.NewUI__d_n
push ecx
call ebx
mov esi, dword [edi + 0x68]
add esp, 0x30
cmp esi, dword [edi + 0x6c]
je 0x409d9a
mov eax, 0x10
cmp dword [esi + 0x30], eax
jb 0x409d71
mov ecx, dword [esi + 0x1c]
jmp 0x409d74
lea ecx, [esi + 0x1c]
cmp dword [esi + 0x14], eax
jb 0x409d7d
mov eax, dword [esi]
jmp 0x409d7f
mov eax, esi
mov edx, dword [ebp - 0x418]
push ecx
push eax
push str._s__s_n
push edx
call ebx
add esi, 0x38
add esp, 0x10
cmp esi, dword [edi + 0x6c]
jne 0x409d62
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
lea ecx, [ebp - 0x41c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0050bf32
mov esp, ebp
pop ebp
ret