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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483556
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1f8c
call fcn.00463720
mov eax, dword [0x4a57cc]
mov dword [ebp - 0x10], eax
push esi
push edi
mov dword [ebp - 0x1f70], ecx
mov eax, dword [ebp - 0x1f70]
mov dword [eax + 0x1d8], 6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
and edx, 0xffff
cmp edx, 0x2001
jb 0x40711a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
and ecx, 0xffff
cmp ecx, 0x20ff
jbe 0x407186
push 0
push 0x4a67f4
lea ecx, [ebp - 0x244]
call fcn.004103b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.00474f05
cmp eax, 2
jne 0x40716a
mov dword [ebp - 0x1f60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00410460
mov eax, dword [ebp - 0x1f60]
jmp 0x40765a
mov dword [0x4a67f4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00410460
mov ecx, dword [ebp - 0x1f70]
call fcn.0040a8f0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
and eax, 0xffff
cmp eax, 0x2001
jb 0x40725d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
and edx, 0xffff
cmp edx, 0x20ff
ja 0x40725d
mov eax, dword [ebp - 0x1f70]
cmp dword [eax + 0x1a4], 0
jne 0x40725d
mov ecx, dword [ebp - 0x1f70]
call fcn.0040ab20
test eax, eax
jne 0x40725d
mov ecx, dword [ebp - 0x1f70]
mov dword [ecx + 0x1a4], 1
push 0
push 0x4a67f4
lea ecx, [ebp - 0x36c]
call fcn.0040f6f0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x36c]
call fcn.00474f05
cmp eax, 2
jne 0x407241
mov dword [ebp - 0x1f64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x36c]
call fcn.0040f7a0
mov eax, dword [ebp - 0x1f64]
jmp 0x40765a
mov dword [0x4a67f4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x36c]
call fcn.0040f7a0
lea ecx, [ebp - 0x120]
call fcn.00403c10
mov dword [ebp - 4], 2
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0x1f74], eax
cmp dword [ebp - 0x1f74], 0x17002
ja 0x4072cb
cmp dword [ebp - 0x1f74], 0x17002
je 0x4072f7
cmp dword [ebp - 0x1f74], 0x1200b
je 0x40731b
cmp dword [ebp - 0x1f74], 0x12101
je 0x4072e5
cmp dword [ebp - 0x1f74], 0x12203
je 0x40732d
jmp 0x40734f
cmp dword [ebp - 0x1f74], 0x17003
je 0x407309
cmp dword [ebp - 0x1f74], 0x17005
je 0x40733f
jmp 0x40734f
push str.http:__file.nx.com_image_setup_img_kart.jpg
lea ecx, [ebp - 0x120]
call fcn.004205a0
jmp 0x40734f
push str.http:__file.nx.com_image_setup_img_cube.jpg
lea ecx, [ebp - 0x120]
call fcn.004205a0
jmp 0x40734f
push str.http:__file.nx.com_image_setup_img_zapper.jpg
lea ecx, [ebp - 0x120]
call fcn.004205a0
jmp 0x40734f
push str.http:__file.nx.com_image_setup_img_manmani.jpg
lea ecx, [ebp - 0x120]
call fcn.004205a0
jmp 0x40734f
push str.http:__file.nx.com_image_setup_img_bigshot.jpg
lea ecx, [ebp - 0x120]
call fcn.004205a0
jmp 0x40734f
push str.http:__file.nx.com_image_setup_img_lunia.jpg
lea ecx, [ebp - 0x120]
call fcn.004205a0
mov ecx, dword [ebp + 8]
call fcn.0040c2f0
test eax, eax
je 0x4075a4
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
push 1
push 0x489170
mov edx, dword [ebp + 8]
add edx, 0x90
push edx
call fcn.00426350
add esp, 0x14
test eax, eax
jne 0x4074ea
push 1
push 0x26
lea eax, [ebp - 0x11c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x407406
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
push 1
push 0x48917c
push 0x48918c
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00425e70
add esp, 0x18
test eax, eax
jne 0x407406
mov edx, dword [0x4891b0]
mov dword [ebp - 0x11c], edx
mov eax, dword [0x4891b4]
mov dword [ebp - 0x118], eax
mov ecx, dword [0x4891b8]
mov dword [ebp - 0x114], ecx
mov edx, dword [0x4891bc]
mov dword [ebp - 0x110], edx
mov al, byte [0x4891c0]
mov byte [ebp - 0x10c], al
lea ecx, [ebp - 0x11c]
add ecx, 0xffffffff
mov dword [ebp - 0x1f78], ecx
mov edx, dword [ebp - 0x1f78]
mov al, byte [edx + 1]
mov byte [ebp - 0x1f79], al
inc dword [ebp - 0x1f78]
cmp byte [ebp - 0x1f79], 0
jne 0x407415
mov edi, dword [ebp - 0x1f78]
mov ecx, dword [0x4891c4]
mov dword [edi], ecx
mov edx, dword [0x4891c8]
mov dword [edi + 4], edx
mov eax, dword [ebp + 8]
add eax, 0x70
mov dword [ebp - 0x1f80], eax
mov ecx, dword [ebp - 0x1f80]
mov dword [ebp - 0x1f84], ecx
mov edx, dword [ebp - 0x1f80]
mov al, byte [edx]
mov byte [ebp - 0x1f85], al
inc dword [ebp - 0x1f80]
cmp byte [ebp - 0x1f85], 0
jne 0x407462
mov ecx, dword [ebp - 0x1f80]
sub ecx, dword [ebp - 0x1f84]
mov edx, dword [ebp - 0x1f84]
mov dword [ebp - 0x1f8c], edx
mov dword [ebp - 0x1f90], ecx
lea eax, [ebp - 0x11c]
add eax, 0xffffffff
mov dword [ebp - 0x1f94], eax
mov ecx, dword [ebp - 0x1f94]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x1f95], dl
inc dword [ebp - 0x1f94]
cmp byte [ebp - 0x1f95], 0
jne 0x4074ac
mov edi, dword [ebp - 0x1f94]
mov esi, dword [ebp - 0x1f8c]
mov eax, dword [ebp - 0x1f90]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0x4a67f4
mov ecx, dword [ebp + 8]
add ecx, 0x70
push ecx
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0xebc]
call fcn.0040e6c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x120]
call fcn.00420d30
push eax
lea ecx, [ebp - 0xebc]
call fcn.0040ebe0
lea ecx, [ebp - 0xebc]
call fcn.00474f05
cmp eax, 2
jne 0x40756b
mov dword [ebp - 0x1f68], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xebc]
call fcn.0040e7f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00403ca0
mov eax, dword [ebp - 0x1f68]
jmp 0x40765a
mov dword [0x4a67f4], 0
push 0x103
lea ecx, [ebp - 0xebc]
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 - 0xebc]
call fcn.0040e7f0
mov dword [ebp - 0xec0], 1
push 0
push 0x4a67f4
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x890
push edx
lea ecx, [ebp - 0x1f5c]
call fcn.00401120
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x120]
call fcn.00420d30
push eax
lea ecx, [ebp - 0x1f5c]
call fcn.00401f10
lea ecx, [ebp - 0x1f5c]
call fcn.00474f05
cmp eax, 1
je 0x40761d
mov dword [ebp - 0xec0], 0
lea ecx, [ebp - 0x1f5c]
call fcn.00401f40
mov ecx, dword [ebp - 0x1f70]
mov dword [ecx + 0x1d8], eax
mov dword [0x4a67f4], 0
mov edx, dword [ebp - 0xec0]
mov dword [ebp - 0x1f6c], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1f5c]
call fcn.00401240
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00403ca0
mov eax, dword [ebp - 0x1f6c]
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 8