Function at 0x408a30
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468441
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x4a5590]
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 edi, ecx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x268], eax
test edx, edx
jne 0x408a81
mov edx, 0x47abfc
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [edx], ax
jne 0x408aa7
xor ecx, ecx
jmp 0x408abf
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408ab0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.0040a110
mov dword [ebp - 4], 0
cmp dword [ebp - 0x220], 0
jne 0x408b9e
lea ecx, [ebp - 0x260]
call fcn.00408790
push 0x4a6f24
mov edx, eax
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.00409ad0
mov esi, eax
lea eax, [ebp - 0x230]
add esp, 4
cmp eax, esi
je 0x408b50
cmp dword [ebp - 0x21c], 8
jb 0x408b27
push dword [ebp - 0x230]
call fcn.0044d639
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00409c20
cmp dword [ebp - 0x234], 8
jb 0x408b67
push dword [ebp - 0x248]
call fcn.0044d639
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jb 0x408b9e
push dword [ebp - 0x260]
call fcn.0044d639
add esp, 4
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x408bb3
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x408dc0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AvgRLInitialization5
push eax
call esi
push str.AvgRLDestroy
push dword [edi + 0x30]
mov dword [edi], eax
call esi
push str.AvgRLGetMachineId
push dword [edi + 0x30]
mov dword [edi + 4], eax
call esi
push str.AvgRLEventReport5
push dword [edi + 0x30]
mov dword [edi + 8], eax
call esi
push str.AvgRLSetLicense5
push dword [edi + 0x30]
mov dword [edi + 0xc], eax
call esi
push str.AvgRLSetLicenseExtens
push dword [edi + 0x30]
mov dword [edi + 0x10], eax
call esi
cmp dword [edi], 0
mov dword [edi + 0x14], eax
je 0x408da1
cmp dword [edi + 4], 0
je 0x408da1
cmp dword [edi + 8], 0
je 0x408da1
cmp dword [edi + 0xc], 0
je 0x408da1
test eax, eax
je 0x408da1
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00450d40
add esp, 0xc
lea ecx, [ebp - 0x248]
push 0x47abfc
call fcn.0040a210
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
mov byte [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x408d1b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00409270
push 0x47abf8
lea ecx, [ebp - 0x248]
call fcn.004093f0
push str.AVGAWL
lea ecx, [ebp - 0x248]
call fcn.004093f0
cmp byte [ebp + 0x14], 0
je 0x408d0b
push str.TEMP
lea eax, [ebp - 0x264]
push 0
push eax
mov dword [ebp - 0x264], 0
call fcn.0044dc73
add esp, 0xc
lea ecx, [ebp - 0x248]
push dword [ebp - 0x264]
call fcn.00409270
push dword [ebp - 0x264]
call fcn.0044cc04
add esp, 4
push str.AvgRep.xml
lea ecx, [ebp - 0x248]
call fcn.004093f0
cmp dword [ebp - 0x234], 8
mov eax, dword [ebp - 0x248]
jae 0x408d30
lea eax, [ebp - 0x248]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x26c]
push 0x47ab44
push eax
mov eax, dword [edi]
call eax
test eax, eax
js 0x408d75
lea ecx, [ebp - 0x248]
mov byte [edi + 0x34], 1
mov byte [ebp - 4], 0
call fcn.0040a2d0
push dword [ebp - 0x268]
mov ecx, edi
push ebx
call fcn.00408f20
jmp 0x408dcf
push str.AvgRLInitializationError
lea ecx, [edi + 0x18]
call fcn.00409270
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.0040a2d0
push dword [ebp - 0x268]
mov ecx, edi
push ebx
call fcn.00408f20
jmp 0x408dcf
push 0x14
push str.CanNotGetProcAddress
lea ecx, [edi + 0x18]
call fcn.0040a110
push dword [ebp - 0x268]
mov ecx, edi
push ebx
call fcn.00408f20
jmp 0x408dcf
push 0xd
push str.CanNotLoadLib
lea ecx, [edi + 0x18]
call fcn.0040a110
cmp dword [ebp - 0x21c], 8
jb 0x408de6
push dword [ebp - 0x230]
call fcn.0044d639
add esp, 4
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.0044c32d
mov esp, ebp
pop ebp
ret 0x18