Function at 0x403a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x4bd750]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x1e]
push ebx
push eax
mov esi, ecx
mov edi, edx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x24], bx
call fcn.00475860
push 0x206
lea ecx, [esp + 0x232]
push ebx
push ecx
mov word [esp + 0x238], bx
call fcn.00475860
add esp, 0x18
push ebx
push 5
lea edx, [esp + 0x228]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x220]
push eax
push str._sDragonNest
lea edx, [esp + 0x20]
call fcn.00404860
lea ecx, [esp + 0x20]
push ecx
call fcn.00472d26
lea edx, [esp + 0x22c]
push edx
push str._sDragonNestConfig
lea edx, [esp + 0x2c]
call fcn.00404860
lea eax, [esp + 0x2c]
push eax
call fcn.00472d26
push str.Config.ini
lea ecx, [esp + 0x23c]
push ecx
push str._sDragonNestConfig_s
lea edx, [esp + 0x3c]
call fcn.00404860
add esp, 0x24
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call fcn.00404c60
mov eax, dword [esp + 0x14]
push 0x4aaecc
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0047281b
add esp, 0xc
test eax, eax
je 0x403bba
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403ba3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.004716ba
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ecx
call fcn.004728f2
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x1c]
push edx
push str._Width__d_n
push eax
call fcn.00472977
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x28]
push ecx
push str.Height__d_n
push edx
call fcn.00472977
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x34]
push eax
push str.GraphicQuality__d_n
push ecx
call fcn.00472977
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x40]
push edx
push str.TextureQuality__d_n
push eax
call fcn.00472977
mov edx, dword [esp + 0x4c]
xor ecx, ecx
cmp dword [esi + 0x14], ebx
setne cl
push ecx
push str.WindowMode__d_n
push edx
call fcn.00472977
mov ecx, dword [esp + 0x58]
add esp, 0x48
xor eax, eax
cmp dword [esi + 0x18], ebx
setne al
push eax
push str.VSync__d_n
push ecx
call fcn.00472977
lea edi, [esi + 0x20]
mov esi, dword [edi + 4]
add esp, 0xc
cmp esi, dword [edi + 8]
jbe 0x403c58
call fcn.0047263c
mov ebx, dword [edi + 8]
cmp dword [edi + 4], ebx
jbe 0x403c65
call fcn.0047263c
cmp edi, edi
je 0x403c6e
call fcn.0047263c
cmp esi, ebx
je 0x403cc5
cmp esi, dword [edi + 8]
jb 0x403c7c
call fcn.0047263c
cmp dword [esi + 0x34], 0x10
jb 0x403c87
mov ebx, dword [esi + 0x20]
jmp 0x403c8a
lea ebx, [esi + 0x20]
cmp esi, dword [edi + 8]
jb 0x403c94
call fcn.0047263c
cmp dword [esi + 0x18], 0x10
jb 0x403c9f
mov eax, dword [esi + 4]
jmp 0x403ca2
lea eax, [esi + 4]
mov edx, dword [esp + 0x10]
push ebx
push eax
push str._s__s_n
push edx
call fcn.00472977
add esp, 0x10
cmp esi, dword [edi + 8]
jb 0x403cc0
call fcn.0047263c
add esi, 0x38
jmp 0x403c58
mov eax, dword [esp + 0x10]
push eax
call fcn.00472b50
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403cf2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004716ba
mov esp, ebp
pop ebp
ret