Function at 0x4164c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546d35
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
mov eax, dword [0x5a7634]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x450], ecx
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, dword [ebp - 0x450]
call fcn.0043be48
push 0
call fcn.0043e76a
test eax, eax
jne 0x416521
push 0xffffffffffffffff
push 0
push 0x67
call fcn.00436eed
xor eax, eax
jmp 0x416dae
mov eax, dword [ebp - 0x450]
mov dword [eax + 0xb8], 0
push 0
call fcn.0043e1f9
add esp, 4
push 0
mov ecx, dword [ebp - 0x450]
add ecx, 0xc0
push ecx
mov edx, dword [ebp - 0x450]
add edx, 0xd0
push edx
call sub.gdiplus.dll_GdiplusStartup
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x454], ecx
lea edx, [ebp - 0x324]
mov dword [ebp - 0x458], edx
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x45c], eax
mov ecx, dword [ebp - 0x454]
mov dl, byte [ecx]
mov byte [ebp - 0x45d], dl
mov eax, dword [ebp - 0x458]
mov cl, byte [ebp - 0x45d]
mov byte [eax], cl
mov edx, dword [ebp - 0x454]
add edx, 1
mov dword [ebp - 0x454], edx
mov eax, dword [ebp - 0x458]
add eax, 1
mov dword [ebp - 0x458], eax
cmp byte [ebp - 0x45d], 0
jne 0x416592
lea ecx, [ebp - 0x324]
add ecx, 0xffffffff
mov dword [ebp - 0x464], ecx
mov edx, dword [ebp - 0x464]
mov al, byte [edx + 1]
mov byte [ebp - 0x465], al
add dword [ebp - 0x464], 1
cmp byte [ebp - 0x465], 0
jne 0x4165e4
mov edi, dword [ebp - 0x464]
mov cx, word [0x557c94]
mov word [edi], cx
lea edx, [ebp - 0x324]
add edx, 0xffffffff
mov dword [ebp - 0x46c], edx
mov eax, dword [ebp - 0x46c]
mov cl, byte [eax + 1]
mov byte [ebp - 0x46d], cl
add dword [ebp - 0x46c], 1
cmp byte [ebp - 0x46d], 0
jne 0x416622
mov edi, dword [ebp - 0x46c]
mov edx, dword [0x557c98]
mov dword [edi], edx
mov eax, dword [0x557c9c]
mov dword [edi + 4], eax
mov ecx, dword [0x557ca0]
mov dword [edi + 8], ecx
mov edx, dword [0x557ca4]
mov dword [edi + 0xc], edx
mov eax, dword [0x557ca8]
mov dword [edi + 0x10], eax
mov cl, byte [0x557cac]
mov byte [edi + 0x14], cl
push 0
lea edx, [ebp - 0x324]
push edx
call fcn.0054614c
add esp, 8
test eax, eax
jne 0x41669e
lea eax, [ebp - 0x324]
push eax
call fcn.0052de66
add esp, 4
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x474], ecx
lea edx, [ebp - 0x324]
mov dword [ebp - 0x478], edx
mov eax, dword [ebp - 0x478]
mov dword [ebp - 0x47c], eax
mov ecx, dword [ebp - 0x474]
mov dl, byte [ecx]
mov byte [ebp - 0x47d], dl
mov eax, dword [ebp - 0x478]
mov cl, byte [ebp - 0x47d]
mov byte [eax], cl
mov edx, dword [ebp - 0x474]
add edx, 1
mov dword [ebp - 0x474], edx
mov eax, dword [ebp - 0x478]
add eax, 1
mov dword [ebp - 0x478], eax
cmp byte [ebp - 0x47d], 0
jne 0x4166c2
lea ecx, [ebp - 0x324]
add ecx, 0xffffffff
mov dword [ebp - 0x484], ecx
mov edx, dword [ebp - 0x484]
mov al, byte [edx + 1]
mov byte [ebp - 0x485], al
add dword [ebp - 0x484], 1
cmp byte [ebp - 0x485], 0
jne 0x416714
mov edi, dword [ebp - 0x484]
mov cx, word [0x557cb0]
mov word [edi], cx
lea edx, [ebp - 0x324]
add edx, 0xffffffff
mov dword [ebp - 0x48c], edx
mov eax, dword [ebp - 0x48c]
mov cl, byte [eax + 1]
mov byte [ebp - 0x48d], cl
add dword [ebp - 0x48c], 1
cmp byte [ebp - 0x48d], 0
jne 0x416752
mov edi, dword [ebp - 0x48c]
mov edx, dword [0x557cb4]
mov dword [edi], edx
mov eax, dword [0x557cb8]
mov dword [edi + 4], eax
mov ecx, dword [0x557cbc]
mov dword [edi + 8], ecx
mov edx, dword [0x557cc0]
mov dword [edi + 0xc], edx
mov eax, dword [0x557cc4]
mov dword [edi + 0x10], eax
push 0
lea ecx, [ebp - 0x324]
push ecx
call fcn.0054614c
add esp, 8
test eax, eax
jne 0x4167c5
lea edx, [ebp - 0x324]
push edx
call fcn.0052de66
add esp, 4
mov ecx, dword [ebp - 0x450]
add ecx, 0xd4
call fcn.00404850
movzx eax, al
test eax, eax
jne 0x4167e4
xor eax, eax
jmp 0x416dae
push str.config_cg.txt
mov ecx, dword [ebp - 0x450]
add ecx, 0xd4
call fcn.004049b0
movzx ecx, al
test ecx, ecx
jne 0x416808
xor eax, eax
jmp 0x416dae
mov ecx, dword [ebp - 0x450]
add ecx, 0xd4
call fcn.00404ad0
movzx edx, al
test edx, edx
jne 0x416827
xor eax, eax
jmp 0x416dae
mov eax, dword [ebp - 0x450]
add eax, 0x5f0
push eax
push str.config_main1.png
mov ecx, dword [ebp - 0x450]
add ecx, 0xd4
call fcn.00405d50
movzx ecx, al
test ecx, ecx
jne 0x416857
xor eax, eax
jmp 0x416dae
push 0
push 0x10
lea edx, [ebp - 0x114]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x494], eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x498], ecx
mov edx, dword [ebp - 0x498]
mov al, byte [edx]
mov byte [ebp - 0x499], al
mov ecx, dword [ebp - 0x494]
cmp al, byte [ecx]
jne 0x4168e0
cmp byte [ebp - 0x499], 0
je 0x4168d4
mov edx, dword [ebp - 0x498]
mov al, byte [edx + 1]
mov byte [ebp - 0x49a], al
mov ecx, dword [ebp - 0x494]
cmp al, byte [ecx + 1]
jne 0x4168e0
add dword [ebp - 0x498], 2
add dword [ebp - 0x494], 2
cmp byte [ebp - 0x49a], 0
jne 0x416882
mov dword [ebp - 0x4a0], 0
jmp 0x4168eb
sbb edx, edx
sbb edx, 0xffffffff
mov dword [ebp - 0x4a0], edx
mov eax, dword [ebp - 0x4a0]
mov dword [ebp - 0x4a4], eax
cmp dword [ebp - 0x4a4], 0
je 0x416b0b
push 0x104
lea ecx, [ebp - 0x42c]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x42c]
push eax
call fcn.00416f20
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x416b0b
lea ecx, [ebp - 0x430]
call fcn.004016f0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x42c]
push edx
lea ecx, [ebp - 0x430]
call fcn.00403d50
push 0x5c
lea ecx, [ebp - 0x430]
call fcn.004149e0
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x434]
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x430]
call fcn.004148f0
push 0x2e
lea ecx, [ebp - 0x430]
call fcn.004149e0
mov dword [ebp - 0x434], eax
lea ecx, [ebp - 0x430]
call fcn.00403e20
push eax
mov ecx, dword [ebp - 0x434]
push ecx
lea ecx, [ebp - 0x430]
call fcn.004148f0
lea edx, [ebp - 0x114]
add edx, 0xffffffff
mov dword [ebp - 0x4a8], edx
mov eax, dword [ebp - 0x4a8]
mov cl, byte [eax + 1]
mov byte [ebp - 0x4a9], cl
add dword [ebp - 0x4a8], 1
cmp byte [ebp - 0x4a9], 0
jne 0x4169c7
mov edi, dword [ebp - 0x4a8]
mov dx, word [0x557cec]
mov word [edi], dx
lea ecx, [ebp - 0x430]
call fcn.0040a0e0
mov dword [ebp - 0x4b0], eax
mov eax, dword [ebp - 0x4b0]
mov dword [ebp - 0x4b4], eax
mov ecx, dword [ebp - 0x4b0]
mov dl, byte [ecx]
mov byte [ebp - 0x4b5], dl
add dword [ebp - 0x4b0], 1
cmp byte [ebp - 0x4b5], 0
jne 0x416a13
mov eax, dword [ebp - 0x4b0]
sub eax, dword [ebp - 0x4b4]
mov ecx, dword [ebp - 0x4b4]
mov dword [ebp - 0x4bc], ecx
mov dword [ebp - 0x4c0], eax
lea edx, [ebp - 0x114]
add edx, 0xffffffff
mov dword [ebp - 0x4c4], edx
mov eax, dword [ebp - 0x4c4]
mov cl, byte [eax + 1]
mov byte [ebp - 0x4c5], cl
add dword [ebp - 0x4c4], 1
cmp byte [ebp - 0x4c5], 0
jne 0x416a5e
mov edi, dword [ebp - 0x4c4]
mov esi, dword [ebp - 0x4bc]
mov edx, dword [ebp - 0x4c0]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x114]
add eax, 0xffffffff
mov dword [ebp - 0x4cc], eax
mov ecx, dword [ebp - 0x4cc]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x4cd], dl
add dword [ebp - 0x4cc], 1
cmp byte [ebp - 0x4cd], 0
jne 0x416aac
mov edi, dword [ebp - 0x4cc]
mov eax, dword [str..lnk]
mov dword [edi], eax
mov cl, byte [0x557cf4]
mov byte [edi + 4], cl
push 0
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x42c]
push eax
call fcn.00416dd0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.00401710
mov ecx, dword [ebp - 0x450]
add ecx, 0xd4
call fcn.00413fd0
add eax, 0xc4
mov dword [ebp - 0x4d4], eax
mov ecx, dword [ebp - 0x4d4]
add ecx, 1
mov dword [ebp - 0x4d8], ecx
mov edx, dword [ebp - 0x4d4]
mov al, byte [edx]
mov byte [ebp - 0x4d9], al
add dword [ebp - 0x4d4], 1
cmp byte [ebp - 0x4d9], 0
jne 0x416b36
mov ecx, dword [ebp - 0x4d4]
sub ecx, dword [ebp - 0x4d8]
mov dword [ebp - 0x4e0], ecx
cmp dword [ebp - 0x4e0], 2
ja 0x416ce9
push 0xb8
call fcn.004141d0
mov dword [ebp - 0x43c], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x43c], 0
je 0x416bb5
push 0
mov edx, dword [ebp - 0x450]
mov eax, dword [edx + 0x5f0]
push eax
mov ecx, dword [ebp - 0x43c]
call fcn.00416160
mov dword [ebp - 0x4e4], eax
jmp 0x416bbf
mov dword [ebp - 0x4e4], 0
mov ecx, dword [ebp - 0x4e4]
mov dword [ebp - 0x438], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x450]
mov eax, dword [ebp - 0x438]
mov dword [edx + 0x5f8], eax
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 0x5f8]
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 0x5f8]
mov edx, dword [edx]
mov eax, dword [edx + 0x170]
call eax
push 0
mov ecx, dword [ebp - 0x450]
add ecx, 0x5fc
call fcn.00417540
movsx ecx, al
test ecx, ecx
je 0x416ce4
push 0x5b0
call fcn.004141d0
mov dword [ebp - 0x444], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x444], 0
je 0x416c59
push 0
mov ecx, dword [ebp - 0x444]
call fcn.00410320
mov dword [ebp - 0x4e8], eax
jmp 0x416c63
mov dword [ebp - 0x4e8], 0
mov edx, dword [ebp - 0x4e8]
mov dword [ebp - 0x440], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x440]
mov dword [eax + 0x5f4], ecx
mov ecx, dword [ebp - 0x450]
add ecx, 0x5fc
call fcn.0040a0e0
push eax
mov edx, dword [ebp - 0x450]
mov ecx, dword [edx + 0x5f4]
call fcn.004174a0
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 0x5f4]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 0x5f4]
mov edx, dword [ebp - 0x450]
mov eax, dword [edx + 0x5f4]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x170]
call eax
jmp 0x416dac
push 0x5b0
call fcn.004141d0
mov dword [ebp - 0x44c], eax
mov dword [ebp - 4], 3
cmp dword [ebp - 0x44c], 0
je 0x416d1e
push 0
mov ecx, dword [ebp - 0x44c]
call fcn.00410320
mov dword [ebp - 0x4ec], eax
jmp 0x416d28
mov dword [ebp - 0x4ec], 0
mov ecx, dword [ebp - 0x4ec]
mov dword [ebp - 0x448], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x450]
mov eax, dword [ebp - 0x448]
mov dword [edx + 0x5f4], eax
mov ecx, dword [ebp - 0x450]
add ecx, 0xd4
call fcn.00413fd0
add eax, 0xc4
push eax
mov ecx, dword [ebp - 0x450]
mov ecx, dword [ecx + 0x5f4]
call fcn.004174a0
mov edx, dword [ebp - 0x450]
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 0x5f4]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x450]
mov eax, dword [edx + 0x5f4]
mov ecx, dword [ebp - 0x450]
mov ecx, dword [ecx + 0x5f4]
mov edx, dword [eax]
mov eax, dword [edx + 0x170]
call eax
xor eax, eax
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.0052c3ba
mov esp, ebp
pop ebp
ret