Function at 0x416510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546da5
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.0043be9b
push 0
call fcn.0043e7bc
test eax, eax
jne 0x416571
push 0xffffffffffffffff
push 0
push 0x67
call fcn.00436f40
xor eax, eax
jmp 0x416dfe
mov eax, dword [ebp - 0x450]
mov dword [eax + 0xb8], 0
push 0
call fcn.0043e24b
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 0x4165e2
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 0x416634
mov edi, dword [ebp - 0x464]
mov cx, word [0x557cac]
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 0x416672
mov edi, dword [ebp - 0x46c]
mov edx, dword [0x557cb0]
mov dword [edi], edx
mov eax, dword [0x557cb4]
mov dword [edi + 4], eax
mov ecx, dword [0x557cb8]
mov dword [edi + 8], ecx
mov edx, dword [0x557cbc]
mov dword [edi + 0xc], edx
mov eax, dword [0x557cc0]
mov dword [edi + 0x10], eax
mov cl, byte [0x557cc4]
mov byte [edi + 0x14], cl
push 0
lea edx, [ebp - 0x324]
push edx
call fcn.005461bc
add esp, 8
test eax, eax
jne 0x4166ee
lea eax, [ebp - 0x324]
push eax
call fcn.0052deb6
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 0x416712
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 0x416764
mov edi, dword [ebp - 0x484]
mov cx, word [0x557cc8]
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 0x4167a2
mov edi, dword [ebp - 0x48c]
mov edx, dword [0x557ccc]
mov dword [edi], edx
mov eax, dword [0x557cd0]
mov dword [edi + 4], eax
mov ecx, dword [0x557cd4]
mov dword [edi + 8], ecx
mov edx, dword [0x557cd8]
mov dword [edi + 0xc], edx
mov eax, dword [0x557cdc]
mov dword [edi + 0x10], eax
push 0
lea ecx, [ebp - 0x324]
push ecx
call fcn.005461bc
add esp, 8
test eax, eax
jne 0x416815
lea edx, [ebp - 0x324]
push edx
call fcn.0052deb6
add esp, 4
mov ecx, dword [ebp - 0x450]
add ecx, 0xd4
call fcn.00404850
movzx eax, al
test eax, eax
jne 0x416834
xor eax, eax
jmp 0x416dfe
push str.config_cg.txt
mov ecx, dword [ebp - 0x450]
add ecx, 0xd4
call fcn.004049b0
movzx ecx, al
test ecx, ecx
jne 0x416858
xor eax, eax
jmp 0x416dfe
mov ecx, dword [ebp - 0x450]
add ecx, 0xd4
call fcn.00404ad0
movzx edx, al
test edx, edx
jne 0x416877
xor eax, eax
jmp 0x416dfe
mov eax, dword [ebp - 0x450]
add eax, 0x5f4
push eax
push str.config_main1.png
mov ecx, dword [ebp - 0x450]
add ecx, 0xd4
call fcn.00405d70
movzx ecx, al
test ecx, ecx
jne 0x4168a7
xor eax, eax
jmp 0x416dfe
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 0x416930
cmp byte [ebp - 0x499], 0
je 0x416924
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 0x416930
add dword [ebp - 0x498], 2
add dword [ebp - 0x494], 2
cmp byte [ebp - 0x49a], 0
jne 0x4168d2
mov dword [ebp - 0x4a0], 0
jmp 0x41693b
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 0x416b5b
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.00416f70
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x416b5b
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.00414a30
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x434]
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x430]
call fcn.00414940
push 0x2e
lea ecx, [ebp - 0x430]
call fcn.00414a30
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.00414940
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 0x416a17
mov edi, dword [ebp - 0x4a8]
mov dx, word [0x557d04]
mov word [edi], dx
lea ecx, [ebp - 0x430]
call fcn.0040a100
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 0x416a63
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 0x416aae
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 0x416afc
mov edi, dword [ebp - 0x4cc]
mov eax, dword [str..lnk]
mov dword [edi], eax
mov cl, byte [0x557d0c]
mov byte [edi + 4], cl
push 0
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x42c]
push eax
call fcn.00416e20
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.00414020
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 0x416b86
mov ecx, dword [ebp - 0x4d4]
sub ecx, dword [ebp - 0x4d8]
mov dword [ebp - 0x4e0], ecx
cmp dword [ebp - 0x4e0], 2
ja 0x416d39
push 0xb8
call fcn.00414220
mov dword [ebp - 0x43c], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x43c], 0
je 0x416c05
push 0
mov edx, dword [ebp - 0x450]
mov eax, dword [edx + 0x5f4]
push eax
mov ecx, dword [ebp - 0x43c]
call fcn.004161b0
mov dword [ebp - 0x4e4], eax
jmp 0x416c0f
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 + 0x5fc], eax
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 0x5fc]
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 0x5fc]
mov edx, dword [edx]
mov eax, dword [edx + 0x170]
call eax
push 0
mov ecx, dword [ebp - 0x450]
add ecx, 0x600
call fcn.00417590
movsx ecx, al
test ecx, ecx
je 0x416d34
push 0x5b0
call fcn.00414220
mov dword [ebp - 0x444], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x444], 0
je 0x416ca9
push 0
mov ecx, dword [ebp - 0x444]
call fcn.00410340
mov dword [ebp - 0x4e8], eax
jmp 0x416cb3
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 + 0x5f8], ecx
mov ecx, dword [ebp - 0x450]
add ecx, 0x600
call fcn.0040a100
push eax
mov edx, dword [ebp - 0x450]
mov ecx, dword [edx + 0x5f8]
call fcn.004174f0
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 0x5f8]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 0x5f8]
mov edx, dword [ebp - 0x450]
mov eax, dword [edx + 0x5f8]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x170]
call eax
jmp 0x416dfc
push 0x5b0
call fcn.00414220
mov dword [ebp - 0x44c], eax
mov dword [ebp - 4], 3
cmp dword [ebp - 0x44c], 0
je 0x416d6e
push 0
mov ecx, dword [ebp - 0x44c]
call fcn.00410340
mov dword [ebp - 0x4ec], eax
jmp 0x416d78
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 + 0x5f8], eax
mov ecx, dword [ebp - 0x450]
add ecx, 0xd4
call fcn.00414020
add eax, 0xc4
push eax
mov ecx, dword [ebp - 0x450]
mov ecx, dword [ecx + 0x5f8]
call fcn.004174f0
mov edx, dword [ebp - 0x450]
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 0x5f8]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x450]
mov eax, dword [edx + 0x5f8]
mov ecx, dword [ebp - 0x450]
mov ecx, dword [ecx + 0x5f8]
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.0052c40e
mov esp, ebp
pop ebp
ret