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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458714
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push edi
mov dword [ebp - 0x160], ecx
mov eax, dword [ebp + 8]
push eax
push 0x90
mov ecx, dword [ebp - 0x160]
call fcn.0044c91f
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x160]
add ecx, 0x5c
call fcn.0040d420
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x160]
add ecx, 0x98
call fcn.0040d150
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x160]
add ecx, 0xd4
call fcn.0040d1e0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x160]
add ecx, 0x130
call fcn.00404cc0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x160]
add ecx, 0x158
call fcn.0040cfa0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x160]
add ecx, 0x160
call fcn.00404cc0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x160]
add ecx, 0x164
call fcn.00404cc0
mov byte [ebp - 4], 7
push fcn.0045035d
push fcn.00404cc0
push 4
push 4
mov ecx, dword [ebp - 0x160]
add ecx, 0x168
push ecx
call fcn.0043dedb
mov byte [ebp - 4], 8
push fcn.0045035d
push fcn.00404cc0
push 4
push 4
mov edx, dword [ebp - 0x160]
add edx, 0x178
push edx
call fcn.0043dedb
mov byte [ebp - 4], 9
push fcn.0045035d
push fcn.00404cc0
push 4
push 4
mov eax, dword [ebp - 0x160]
add eax, 0x188
push eax
call fcn.0043dedb
mov byte [ebp - 4], 0xa
push fcn.0045035d
push fcn.00404cc0
push 4
push 4
mov ecx, dword [ebp - 0x160]
add ecx, 0x198
push ecx
call fcn.0043dedb
mov byte [ebp - 4], 0xb
push fcn.0045035d
push fcn.00404cc0
push 4
push 4
mov edx, dword [ebp - 0x160]
add edx, 0x1a8
push edx
call fcn.0043dedb
mov byte [ebp - 4], 0xc
push fcn.0045035d
push fcn.00404cc0
push 4
push 4
mov eax, dword [ebp - 0x160]
add eax, 0x1b8
push eax
call fcn.0043dedb
mov byte [ebp - 4], 0xd
push fcn.0045035d
push fcn.00404cc0
push 4
push 4
mov ecx, dword [ebp - 0x160]
add ecx, 0x1c8
push ecx
call fcn.0043dedb
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x160]
add ecx, 0x1e8
call fcn.00404cc0
mov byte [ebp - 4], 0xf
push fcn.0045035d
push fcn.00404cc0
push 4
push 4
mov edx, dword [ebp - 0x160]
add edx, 0x10ea8
push edx
call fcn.0043dedb
mov byte [ebp - 4], 0x10
push fcn.0045035d
push fcn.00404cc0
push 4
push 4
mov eax, dword [ebp - 0x160]
add eax, 0x10eb8
push eax
call fcn.0043dedb
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x160]
mov dword [ecx], method.CDialog.virtual_0
push 0x472038
mov ecx, dword [ebp - 0x160]
add ecx, 0x130
call fcn.004504e6
mov edx, dword [ebp - 0x160]
mov dword [edx + 0x134], 0xffffffff
push 0x80
call fcn.0040cf90
mov ecx, eax
call fcn.0040d1a0
mov ecx, dword [ebp - 0x160]
mov dword [ecx + 0x138], eax
mov dword [ebp - 0x150], 0
mov edx, dword [ebp - 0x160]
mov dword [edx + 0x10ea4], 0
mov eax, dword [ebp - 0x160]
mov dword [eax + 0x148], 0
mov ecx, dword [ebp - 0x160]
mov dword [ecx + 0x13c], 0
mov edx, dword [ebp - 0x160]
mov dword [edx + 0x140], 0
mov eax, dword [ebp - 0x160]
mov dword [eax + 0x144], 1
mov ecx, dword [ebp - 0x160]
mov dword [ecx + 0x154], 0
mov edx, dword [ebp - 0x160]
mov dword [edx + 0x150], 0
mov dword [ebp - 0x150], 0
jmp 0x4088da
mov eax, dword [ebp - 0x150]
add eax, 1
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0x20
jge 0x4088fc
mov ecx, dword [ebp - 0x150]
mov edx, dword [ebp - 0x160]
mov dword [edx + ecx*4 + 0x224], 0
jmp 0x4088cb
mov ecx, dword [ebp - 0x160]
call fcn.0040c737
mov byte [ebp - 0x14c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x14b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push 0x26
lea eax, [ebp - 0x14c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ecx, dword [0x45d264]
push ecx
mov edx, dword [0x45d26c]
push edx
lea eax, [ebp - 0x14c]
push eax
push 0x46c5cc
mov ecx, dword [ebp - 0x160]
add ecx, 0x164
push ecx
call fcn.0044b146
add esp, 0x14
mov edx, dword [0x45d268]
push edx
push 0x46c5d8
mov eax, dword [ebp - 0x160]
add eax, 0x164
push eax
lea ecx, [ebp - 0x154]
push ecx
call fcn.004505f2
mov dword [ebp - 0x164], eax
mov edx, dword [ebp - 0x164]
mov dword [ebp - 0x168], edx
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x168]
push eax
lea ecx, [ebp - 0x158]
push ecx
call fcn.004505f2
mov dword [ebp - 0x16c], eax
mov edx, dword [ebp - 0x16c]
mov dword [ebp - 0x170], edx
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x170]
push eax
mov ecx, dword [ebp - 0x160]
add ecx, 0x160
call fcn.00450496
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x158]
call fcn.0045035d
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x154]
call fcn.0045035d
mov byte [ebp - 0x31], 0x86
mov byte [ebp - 0x2f], 2
mov dword [ebp - 0x40], 0
push 0x46c5dc
call fcn.0043de60
add esp, 4
push eax
push 0x46c5e4
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0043da30
add esp, 0xc
mov dword [ebp - 0x48], 0x12
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x30], 1
mov byte [ebp - 0x2d], 0x22
mov byte [ebp - 0x2e], 2
mov byte [ebp - 0x32], 0
mov byte [ebp - 0x33], 0
mov dword [ebp - 0x38], 0x2bc
mov dword [ebp - 0x44], 8
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0x160]
add ecx, 0x158
call fcn.0040d0e0
push 0x91
push 0x93
push 0x95
push 0x93
mov ecx, dword [ebp - 0x160]
add ecx, 0xd4
call fcn.0040d3e0
push 0x4c
call fcn.00450886
add esp, 4
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x15c]
mov dword [eax + 0x10eec], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4