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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a4
mov eax, dword [0x506380]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
shl eax, 1
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041de10
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
push 1
push str.http
lea edx, [ebp - 0x24]
push edx
call fcn.004ce750
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.00403a60
movzx eax, al
test eax, eax
je 0x4d1961
jmp 0x4d1bc1
xor ecx, ecx
mov word [ebp - 0x240], cx
push 0x206
push 0
lea edx, [ebp - 0x23e]
push edx
call fcn.0041de10
add esp, 0xc
mov dword [ebp - 0x28], 0x104
lea ecx, [ebp - 0x24]
call fcn.00410da0
add eax, 1
push eax
lea ecx, [ebp - 0x24]
call fcn.00403a40
push eax
push 0x104
lea eax, [ebp - 0x240]
push eax
call fcn.0041af4b
add esp, 0x10
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x588], ecx
mov edx, dword [ebp - 0x588]
add edx, 2
mov dword [ebp - 0x58c], edx
mov eax, dword [ebp - 0x588]
mov cx, word [eax]
mov word [ebp - 0x58e], cx
add dword [ebp - 0x588], 2
cmp word [ebp - 0x58e], 0
jne 0x4d19d2
mov edx, dword [ebp - 0x588]
sub edx, dword [ebp - 0x58c]
sar edx, 1
mov dword [ebp - 0x594], edx
mov eax, dword [ebp - 0x594]
sub eax, 1
mov dword [ebp - 0x30], eax
movzx ecx, word [ebp - 0x240]
cmp ecx, 0x22
jne 0x4d1a26
mov dword [ebp - 0x34], 1
lea edx, [ebp - 0x240]
mov dword [ebp - 0x598], edx
mov eax, dword [ebp - 0x598]
add eax, 2
mov dword [ebp - 0x59c], eax
mov ecx, dword [ebp - 0x598]
mov dx, word [ecx]
mov word [ebp - 0x59e], dx
add dword [ebp - 0x598], 2
cmp word [ebp - 0x59e], 0
jne 0x4d1a41
mov eax, dword [ebp - 0x598]
sub eax, dword [ebp - 0x59c]
sar eax, 1
mov dword [ebp - 0x5a4], eax
mov ecx, dword [ebp - 0x5a4]
sub ecx, 1
mov dword [ebp - 0x244], ecx
jmp 0x4d1a96
mov edx, dword [ebp - 0x244]
sub edx, 1
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x244]
cmp eax, dword [ebp - 0x34]
jle 0x4d1b12
xor ecx, ecx
mov word [ebp - 0x24c], cx
xor edx, edx
mov dword [ebp - 0x24a], edx
mov word [ebp - 0x246], dx
push 3
mov eax, dword [ebp - 0x244]
lea ecx, [ebp + eax*2 - 0x244]
push ecx
push 4
lea edx, [ebp - 0x24c]
push edx
call fcn.0041af4b
add esp, 0x10
xor eax, eax
mov word [ebp - 0x246], ax
push 0x4f849c
lea ecx, [ebp - 0x24c]
push ecx
call fcn.0041a656
add esp, 8
test eax, eax
jne 0x4d1b0d
mov edx, dword [ebp - 0x244]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 1
jmp 0x4d1b12
jmp 0x4d1a87
cmp dword [ebp - 0x2c], 0
je 0x4d1bc1
push 0x208
push 0
lea eax, [ebp - 0x458]
push eax
call fcn.0041de10
add esp, 0xc
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x34]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x34]
lea eax, [ebp + edx*2 - 0x240]
push eax
push 0x104
lea ecx, [ebp - 0x458]
push ecx
call fcn.0041af4b
add esp, 0x10
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x458]
push edx
lea ecx, [ebp - 0x580]
call fcn.004d7f50
lea ecx, [ebp - 0x580]
call fcn.004d7820
movzx eax, al
test eax, eax
je 0x4d1bb6
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x34]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x34]
lea eax, [ebp + edx*2 - 0x240]
push eax
push 0x104
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041af4b
add esp, 0x10
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x580]
call fcn.004d78b0
cmp dword [ebp - 4], 0
jne 0x4d1bf8
push 0
push 0x26
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4d1bf8
push str.Internet_ExplorerIEXPLORE.exe
push 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.0041ad9b
add esp, 0xc
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x584], ecx
lea ecx, [ebp - 0x24]
call fcn.00403a20
mov eax, dword [ebp - 0x584]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041a0cf
mov esp, ebp
pop ebp
ret