Function at 0x458122
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48dbc5
mov eax, dword fs:[0]
push eax
mov eax, 0x20a4
call fcn.0047e160
mov eax, dword [0x4b9e20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x20a8], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 4], esi
push 0x1ffe
mov word [ebp - 0x2010], ax
lea eax, [ebp - 0x200e]
push esi
push eax
call fcn.0046fc60
add esp, 0xc
push 7
pop eax
xor ecx, ecx
mov dword [ebp - 0x206c], eax
mov dword [ebp - 0x2070], esi
mov word [ebp - 0x2080], cx
mov dword [ebp - 0x2088], eax
mov dword [ebp - 0x208c], esi
mov word [ebp - 0x209c], cx
mov dword [ebp - 0x2050], eax
xor eax, eax
mov dword [ebp - 0x2054], esi
mov word [ebp - 0x2064], ax
push 0xffffffffffffffff
mov eax, 0xfde9
push eax
push eax
sub esp, 0x1c
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x20a4], esp
push eax
call fcn.004016f0
lea eax, [ebp - 0x202c]
push eax
call fcn.00456b26
add esp, 0x2c
push eax
lea ecx, [ebp - 0x209c]
mov byte [ebp - 4], 4
call fcn.0040ba5a
push esi
push 1
lea ecx, [ebp - 0x202c]
mov byte [ebp - 4], 3
call fcn.0040bba0
mov dword [ebp - 0x20a4], esi
lea eax, [ebp - 0x2064]
mov esi, 0x49e220
push eax
lea ebx, [ebp - 0x20a4]
mov ecx, esi
lea edx, [ebp - 0x209c]
call fcn.00457b53
pop ecx
test al, al
je 0x458251
push esi
call fcn.0046faa4
pop ecx
push esi
mov ebx, eax
lea esi, [ebp - 0x2064]
call fcn.0040ce4a
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea eax, [ebp - 0x209c]
push eax
lea ecx, [ebp - 0x2080]
call fcn.0040baae
lea eax, [ebp - 0x2080]
call fcn.0043cb67
mov edi, str.downloads
push edi
call fcn.0046faa4
pop ecx
push eax
push edi
xor eax, eax
lea ecx, [ebp - 0x2080]
call fcn.0041835a
cmp eax, 0xffffffff
je 0x458441
push 1
push 0x28
lea eax, [ebp - 0x2010]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebx
jne 0x458441
xor eax, eax
mov dword [ebp - 0x2018], 7
mov dword [ebp - 0x201c], ebx
mov word [ebp - 0x202c], ax
lea eax, [ebp - 0x2010]
push eax
mov byte [ebp - 4], 5
call fcn.0046faa4
pop ecx
push eax
lea eax, [ebp - 0x2010]
push eax
lea ecx, [ebp - 0x202c]
call fcn.0040cee2
mov esi, str.Downloads
push esi
call fcn.0046faa4
pop ecx
push esi
mov ebx, eax
lea esi, [ebp - 0x202c]
call fcn.0040ce4a
xor esi, esi
push esi
sub esp, 0x1c
lea eax, [ebp - 0x202c]
mov ecx, esp
cmp dword [ebp - 0x2054], esi
je 0x458378
mov dword [ebp - 0x20a4], esp
push eax
call fcn.0040a49c
sub esp, 0x1c
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2064]
mov ecx, esp
mov dword [ebp - 0x20b0], esp
push eax
call fcn.0040a49c
sub esp, 0x1c
mov byte [ebp - 4], 7
lea eax, [ebp - 0x209c]
mov ecx, esp
mov dword [ebp - 0x20ac], esp
push eax
call fcn.0040a49c
lea ecx, [ebp - 0x2048]
mov byte [ebp - 4], 5
call fcn.00456d94
add esp, 0x58
mov byte [ebp - 4], 8
jmp 0x4583ca
mov dword [ebp - 0x20ac], esp
push eax
call fcn.0040a49c
sub esp, 0x1c
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x20b0], esp
push edi
call fcn.0040a4c4
sub esp, 0x1c
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x2080]
mov ecx, esp
mov dword [ebp - 0x20a4], esp
push eax
call fcn.0040a49c
lea ecx, [ebp - 0x2048]
mov byte [ebp - 4], 5
call fcn.00456d94
add esp, 0x58
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x20a8]
push eax
call fcn.0040ba5a
push esi
push 1
lea ecx, [ebp - 0x2048]
call fcn.0040bba0
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [ebp - 0x202c]
call fcn.0040bba0
push esi
push ebx
lea ecx, [ebp - 0x2064]
call fcn.0040bba0
push esi
push ebx
lea ecx, [ebp - 0x209c]
call fcn.0040bba0
push esi
push ebx
lea ecx, [ebp - 0x2080]
call fcn.0040bba0
push esi
push ebx
lea ecx, [ebp + 8]
call fcn.00401524
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d5b3
leave
ret
mov esi, str.current
push esi
call fcn.0046faa4
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp - 0x2080]
call fcn.0041835a
cmp eax, 0xffffffff
je 0x4585a2
push 0x2000
lea eax, [ebp - 0x2010]
push ebx
push eax
call fcn.0046fc60
add esp, 0xc
lea eax, [ebp - 0x2010]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
jne 0x4585a2
push ebx
sub esp, 0x1c
lea eax, [ebp - 0x2010]
mov ecx, esp
mov dword [ebp - 0x20ac], esp
push eax
cmp dword [ebp - 0x2054], ebx
je 0x458502
call fcn.0040a4c4
sub esp, 0x1c
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x2064]
mov ecx, esp
mov dword [ebp - 0x20b0], esp
push eax
call fcn.0040a49c
sub esp, 0x1c
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x209c]
mov ecx, esp
mov dword [ebp - 0x20a4], esp
push eax
call fcn.0040a49c
lea ecx, [ebp - 0x2048]
mov byte [ebp - 4], 3
call fcn.00456d94
add esp, 0x58
mov byte [ebp - 4], 0xe
jmp 0x45854d
call fcn.0040a4c4
sub esp, 0x1c
mov byte [ebp - 4], 0xf
mov ecx, esp
mov dword [ebp - 0x20b0], esp
push esi
call fcn.0040a4c4
sub esp, 0x1c
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x2080]
mov ecx, esp
mov dword [ebp - 0x20a4], esp
push eax
call fcn.0040a49c
lea ecx, [ebp - 0x2048]
mov byte [ebp - 4], 3
call fcn.00456d94
add esp, 0x58
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x20a8]
push eax
call fcn.0040ba5a
push ebx
push 1
lea ecx, [ebp - 0x2048]
call fcn.0040bba0
xor esi, esi
inc esi
push ebx
push esi
lea ecx, [ebp - 0x2064]
call fcn.0040bba0
push ebx
push esi
lea ecx, [ebp - 0x209c]
call fcn.0040bba0
push ebx
push esi
lea ecx, [ebp - 0x2080]
call fcn.0040bba0
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.00401524
mov al, 1
jmp 0x458427
mov edi, str.temp
push edi
call fcn.0046faa4
pop ecx
push eax
push edi
xor eax, eax
lea ecx, [ebp - 0x2080]
call fcn.0041835a
cmp eax, 0xffffffff
je 0x45872b
xor eax, eax
mov dword [ebp - 0x2018], 7
mov dword [ebp - 0x201c], ebx
mov word [ebp - 0x202c], ax
lea esi, [ebp - 0x202c]
mov byte [ebp - 4], 0x12
call fcn.0045809c
test al, al
je 0x458715
mov eax, dword [ebp - 0x201c]
dec eax
push eax
mov eax, esi
push ebx
push eax
lea esi, [ebp - 0x2048]
call fcn.0040a5d3
push eax
lea ecx, [ebp - 0x202c]
mov byte [ebp - 4], 0x13
call fcn.0040ba5a
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x2048]
mov byte [ebp - 4], 0x12
call fcn.0040bba0
push ebx
sub esp, 0x1c
lea eax, [ebp - 0x202c]
mov ecx, esp
mov dword [ebp - 0x20ac], esp
push eax
cmp dword [ebp - 0x2054], ebx
je 0x45869f
call fcn.0040a49c
sub esp, 0x1c
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x2064]
mov ecx, esp
mov dword [ebp - 0x20b0], esp
push eax
call fcn.0040a49c
sub esp, 0x1c
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x209c]
mov ecx, esp
mov dword [ebp - 0x20a4], esp
push eax
call fcn.0040a49c
lea ecx, [ebp - 0x2048]
mov byte [ebp - 4], 0x12
call fcn.00456d94
add esp, 0x58
mov byte [ebp - 4], 0x16
jmp 0x4586ea
call fcn.0040a49c
sub esp, 0x1c
mov byte [ebp - 4], 0x17
mov ecx, esp
mov dword [ebp - 0x20b0], esp
push edi
call fcn.0040a4c4
sub esp, 0x1c
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x2080]
mov ecx, esp
mov dword [ebp - 0x20a4], esp
push eax
call fcn.0040a49c
lea ecx, [ebp - 0x2048]
mov byte [ebp - 4], 0x12
call fcn.00456d94
add esp, 0x58
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x20a8]
push eax
call fcn.0040ba5a
push ebx
push esi
lea ecx, [ebp - 0x2048]
call fcn.0040bba0
push ebx
push esi
lea ecx, [ebp - 0x202c]
call fcn.0040bba0
jmp 0x45856a
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x202c]
mov byte [ebp - 4], 3
call fcn.0040bba0
jmp 0x45872e
xor edi, edi
inc edi
mov esi, str.mydocuments
push esi
call fcn.0046faa4
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [ebp - 0x2080]
call fcn.0041835a
cmp eax, 0xffffffff
je 0x458896
push 0x2000
lea eax, [ebp - 0x2010]
push ebx
push eax
call fcn.0046fc60
add esp, 0xc
lea eax, [ebp - 0x2010]
push eax
push ebx
push ebx
push 5
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jne 0x458896
push ebx
sub esp, 0x1c
lea eax, [ebp - 0x2010]
mov ecx, esp
mov dword [ebp - 0x20ac], esp
push eax
cmp dword [ebp - 0x2054], ebx
je 0x4587ef
call fcn.0040a4c4
sub esp, 0x1c
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x2064]
mov ecx, esp
mov dword [ebp - 0x20b0], esp
push eax
call fcn.0040a49c
sub esp, 0x1c
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x209c]
mov ecx, esp
mov dword [ebp - 0x20a4], esp
push eax
call fcn.0040a49c
lea ecx, [ebp - 0x2048]
mov byte [ebp - 4], 3
call fcn.00456d94
add esp, 0x58
mov byte [ebp - 4], 0x1c
jmp 0x45883a
call fcn.0040a4c4
sub esp, 0x1c
mov byte [ebp - 4], 0x1d
mov ecx, esp
mov dword [ebp - 0x20b0], esp
push esi
call fcn.0040a4c4
sub esp, 0x1c
mov byte [ebp - 4], 0x1e
lea eax, [ebp - 0x2080]
mov ecx, esp
mov dword [ebp - 0x20a4], esp
push eax
call fcn.0040a49c
lea ecx, [ebp - 0x2048]
mov byte [ebp - 4], 3
call fcn.00456d94
add esp, 0x58
mov byte [ebp - 4], 0x1f
mov ecx, dword [ebp - 0x20a8]
push eax
call fcn.0040ba5a
push ebx
push edi
lea ecx, [ebp - 0x2048]
call fcn.0040bba0
mov byte [ebp - 0x209d], 1
push ebx
push edi
lea ecx, [ebp - 0x2064]
call fcn.0040bba0
push ebx
push edi
lea ecx, [ebp - 0x209c]
call fcn.0040bba0
push ebx
push edi
lea ecx, [ebp - 0x2080]
call fcn.0040bba0
push ebx
push edi
lea ecx, [ebp + 8]
call fcn.00401524
mov al, byte [ebp - 0x209d]
jmp 0x458427
mov ecx, dword [ebp - 0x20a8]
cmp dword [ecx + 0x10], ebx
jne 0x4588b0
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x209c]
push eax
call fcn.0040baae
mov byte [ebp - 0x209d], bl
jmp 0x45885a