Function at 0x407680
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4835ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x30a4
call fcn.00463720
mov eax, dword [0x4a57cc]
mov dword [ebp - 0x10], eax
push esi
push edi
mov dword [ebp - 0x3074], ecx
lea ecx, [ebp - 0x120]
call fcn.00403c10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.00403c10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x124]
call fcn.00403c10
mov byte [ebp - 4], 2
push 0x97
lea ecx, [ebp - 0x120]
call fcn.00403e30
push 0x98
lea ecx, [ebp - 0x128]
call fcn.00403e30
push 0x99
lea ecx, [ebp - 0x124]
call fcn.00403e30
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
push 0x4891cc
mov eax, dword [ebp - 0x3074]
mov ecx, dword [eax + 0x44]
push ecx
call fcn.0040ad50
add esp, 8
test eax, eax
jne 0x4077d3
push 0
push 0x4a67f4
lea ecx, [ebp - 0x24c]
call fcn.004103b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24c]
call fcn.00474f05
cmp eax, 2
jne 0x4077ba
mov dword [ebp - 0x2ed0], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.00410460
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x124]
call fcn.00403ca0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.00403ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00403ca0
mov eax, dword [ebp - 0x2ed0]
jmp 0x407d04
mov dword [0x4a67f4], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.00410460
push 0x4891d0
lea ecx, [ebp - 0x124]
call fcn.0040afd0
test eax, eax
jne 0x407bd2
push 0x104
lea edx, [ebp - 0x11c]
push edx
push 1
push 0x4891d4
lea ecx, [ebp - 0x128]
call fcn.00420d30
push eax
call fcn.00426350
add esp, 0x14
test eax, eax
jne 0x40797d
push 1
push 0x26
lea eax, [ebp - 0x11c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x407894
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
push 1
push 0x4891e0
push 0x4891f0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00425e70
add esp, 0x18
test eax, eax
jne 0x407894
mov edx, dword [0x489214]
mov dword [ebp - 0x11c], edx
mov eax, dword [0x489218]
mov dword [ebp - 0x118], eax
mov ecx, dword [0x48921c]
mov dword [ebp - 0x114], ecx
mov edx, dword [0x489220]
mov dword [ebp - 0x110], edx
mov al, byte [0x489224]
mov byte [ebp - 0x10c], al
lea ecx, [ebp - 0x11c]
add ecx, 0xffffffff
mov dword [ebp - 0x3078], ecx
mov edx, dword [ebp - 0x3078]
mov al, byte [edx + 1]
mov byte [ebp - 0x3079], al
inc dword [ebp - 0x3078]
cmp byte [ebp - 0x3079], 0
jne 0x4078a3
mov edi, dword [ebp - 0x3078]
mov ecx, dword [0x489228]
mov dword [edi], ecx
mov edx, dword [0x48922c]
mov dword [edi + 4], edx
lea ecx, [ebp - 0x120]
call fcn.00420d30
mov dword [ebp - 0x3080], eax
mov eax, dword [ebp - 0x3080]
mov dword [ebp - 0x3084], eax
mov ecx, dword [ebp - 0x3080]
mov dl, byte [ecx]
mov byte [ebp - 0x3085], dl
inc dword [ebp - 0x3080]
cmp byte [ebp - 0x3085], 0
jne 0x4078f5
mov eax, dword [ebp - 0x3080]
sub eax, dword [ebp - 0x3084]
mov ecx, dword [ebp - 0x3084]
mov dword [ebp - 0x308c], ecx
mov dword [ebp - 0x3090], eax
lea edx, [ebp - 0x11c]
add edx, 0xffffffff
mov dword [ebp - 0x3094], edx
mov eax, dword [ebp - 0x3094]
mov cl, byte [eax + 1]
mov byte [ebp - 0x3095], cl
inc dword [ebp - 0x3094]
cmp byte [ebp - 0x3095], 0
jne 0x40793f
mov edi, dword [ebp - 0x3094]
mov esi, dword [ebp - 0x308c]
mov edx, dword [ebp - 0x3090]
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]
push 0
push 0x4a67f4
lea ecx, [ebp - 0x120]
call fcn.00420d30
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x1e34]
call fcn.0040e6c0
mov byte [ebp - 4], 4
mov ecx, dword [str.BINARY_img_kart.png]
push ecx
lea ecx, [ebp - 0x2f54]
call fcn.00403be0
mov dword [ebp - 0x309c], eax
mov edx, dword [ebp - 0x309c]
mov dword [ebp - 0x30a0], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x30a0]
call fcn.00420d30
push eax
lea ecx, [ebp - 0x1e34]
call fcn.0040ebe0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2f54]
call fcn.00414cd0
lea ecx, [ebp - 0x1e34]
call fcn.00474f05
cmp eax, 2
jne 0x407a58
mov dword [ebp - 0x2f58], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1e34]
call fcn.0040e7f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x124]
call fcn.00403ca0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.00403ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00403ca0
mov eax, dword [ebp - 0x2f58]
jmp 0x407d04
mov dword [0x4a67f4], 0
push 0x103
lea ecx, [ebp - 0x1e34]
call fcn.0040ebc0
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004031d0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1e34]
call fcn.0040e7f0
push 0
push 0
lea ecx, [ebp - 0x11c]
push ecx
push 0x489230
lea ecx, [ebp - 0x12e4]
call fcn.00401120
mov byte [ebp - 4], 6
mov edx, dword [str.BINARY_img_kart.png]
push edx
lea ecx, [ebp - 0x2fdc]
call fcn.00403be0
mov dword [ebp - 0x30a4], eax
mov eax, dword [ebp - 0x30a4]
mov dword [ebp - 0x30a8], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x30a8]
call fcn.00420d30
push eax
lea ecx, [ebp - 0x12e4]
call fcn.00401f10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2fdc]
call fcn.00414cd0
lea ecx, [ebp - 0x12e4]
call fcn.00474f05
cmp eax, 1
jne 0x407b7e
push 0x48923f
lea ecx, [ebp - 0x128]
call fcn.00420d30
push eax
mov ecx, dword [ebp - 0x3074]
call fcn.004099d0
mov dword [ebp - 0x2fe0], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x12e4]
call fcn.00401240
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x124]
call fcn.00403ca0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.00403ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00403ca0
mov eax, dword [ebp - 0x2fe0]
jmp 0x407d04
mov dword [ebp - 0x2fe4], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x12e4]
call fcn.00401240
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x124]
call fcn.00403ca0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.00403ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00403ca0
mov eax, dword [ebp - 0x2fe4]
jmp 0x407d04
push 0
push 0
push 0x489240
lea ecx, [ebp - 0x2ecc]
call fcn.00401000
mov byte [ebp - 4], 8
mov ecx, dword [str.BINARY_img_kart.png]
push ecx
lea ecx, [ebp - 0x3068]
call fcn.00403be0
mov dword [ebp - 0x30ac], eax
mov edx, dword [ebp - 0x30ac]
mov dword [ebp - 0x30b0], edx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x30b0]
call fcn.00420d30
push eax
lea ecx, [ebp - 0x2ecc]
call fcn.00401f10
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3068]
call fcn.00414cd0
lea ecx, [ebp - 0x2ecc]
call fcn.00474f05
cmp eax, 1
jne 0x407cb5
push 0x48924f
lea ecx, [ebp - 0x128]
call fcn.00420d30
push eax
mov ecx, dword [ebp - 0x3074]
call fcn.004099d0
mov dword [ebp - 0x306c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2ecc]
call fcn.00401240
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x124]
call fcn.00403ca0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.00403ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00403ca0
mov eax, dword [ebp - 0x306c]
jmp 0x407d04
mov dword [ebp - 0x3070], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2ecc]
call fcn.00401240
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x124]
call fcn.00403ca0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.00403ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00403ca0
mov eax, dword [ebp - 0x3070]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004635af
pop edi
pop esi
mov esp, ebp
pop ebp
ret