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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x4926cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x448]
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x448], 0
call fcn.00422090
mov eax, dword [ebp - 0x440]
test eax, eax
je 0x420604
push eax
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x420617
push eax
call fcn.004547da
add esp, 4
cmp dword [ebp - 0x448], 3
jg 0x420633
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452ca6
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x434], 0
call fcn.00420110
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
call fcn.0045a8b0
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x104
push 0
push eax
call fcn.0045a8b0
add esp, 0xc
lea eax, [ebp - 0x444]
push eax
push 0x26
push 0
mov dword [ebp - 0x444], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x444]
mov esi, dword [ebp - 0x440]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4207f6
lea ecx, [ebp - 0x210]
push ecx
push eax
call ebx
test eax, eax
je 0x4207f6
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00404230
mov edi, dword [ebp - 0x42c]
push str.__x86_
push edi
call fcn.00455005
add esp, 8
test eax, eax
je 0x4207dc
sub eax, edi
sar eax, 1
test eax, eax
jle 0x4207dc
push eax
push 0
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00404460
mov ebx, dword [eax]
test ebx, ebx
je 0x42075a
cmp word [ebx], 0
jne 0x42075f
mov ebx, 0x481274
mov esi, dword [eax + 4]
test ebx, ebx
je 0x4207b0
cmp word [ebx], 0
je 0x4207b0
test esi, esi
jns 0x420784
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x420775
sub esi, ecx
sar esi, 1
push esi
lea ecx, [ebp - 0x42c]
call fcn.004045c0
mov edi, dword [ebp - 0x42c]
push esi
push ebx
push eax
push edi
call fcn.00454b08
add esp, 0x10
xor eax, eax
mov word [edi + esi*2], ax
mov dword [ebp - 0x428], esi
jmp 0x4207c5
test edi, edi
je 0x4207c5
xor eax, eax
mov word [edi], ax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x428], eax
lea ecx, [ebp - 0x45c]
call fcn.00404110
mov esi, dword [ebp - 0x440]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x440]
call fcn.00404400
test al, al
jne 0x42092b
push 0x104
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.0045a8b0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push 0
push eax
call fcn.0045a8b0
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00404230
cmp dword [ebp - 0x428], 0
mov edi, dword [ebp - 0x42c]
setle al
test al, al
jne 0x42089e
test edi, edi
je 0x420866
cmp word [edi], 0
mov ecx, edi
jne 0x42086b
mov ecx, 0x481274
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420870
sub ecx, edx
sar ecx, 1
cmp dword [ebp - 0x43c], ecx
jl 0x42089e
push edi
push esi
call fcn.00455005
add esp, 8
test eax, eax
setne al
test al, al
jne 0x42092b
push 0x104
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.0045a8b0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push 0
push eax
call fcn.0045a8b0
add esp, 0xc
lea eax, [ebp - 0x444]
push eax
push 0x2a
push 0
mov dword [ebp - 0x444], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x444]
test eax, eax
je 0x42092f
lea ecx, [ebp - 0x210]
push ecx
push eax
call ebx
test eax, eax
je 0x42092f
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00404230
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x440]
call fcn.00404400
mov edi, dword [ebp - 0x42c]
test al, al
je 0x42092f
mov bl, 1
jmp 0x420931
xor bl, bl
test edi, edi
je 0x42093e
push edi
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x420951
push eax
call fcn.004547da
add esp, 4
test esi, esi
je 0x42095e
push esi
call fcn.004547da
add esp, 4
mov ecx, dword [ebp - 0x434]
test ecx, ecx
je 0x420971
push ecx
call fcn.004547da
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00452ca6
mov esp, ebp
pop ebp
ret