Function at 0x40f480
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x47f880
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b445c]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x34], esi
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x30]
push eax
push 0x20019
push edi
push str.SOFTWAREClassesCLSID3F096DF9_E61A_40D2_96CA_E734019AB4B9
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x40f50d
mov eax, dword [esi + 0x27f0]
cmp eax, edi
je 0x40f4fc
push str.WebI800.dll_had_been_installed.
push eax
call fcn.004310b0
add esp, 8
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40f7b1
push str.WebI800.dll
lea ecx, [ebp - 0x20]
call fcn.00407010
mov byte [ebp - 4], 1
push 0x48bdbc
lea ecx, [ebp - 0x28]
call fcn.00407010
mov byte [ebp - 4], 2
push 0x104
push edi
lea edx, [ebp + 0x104]
push edx
call fcn.0045eb50
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call fcn.0044b354
mov eax, dword [eax + 4]
push 0x104
lea ecx, [ebp + 0x104]
push ecx
mov edx, dword [eax + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x104]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407010
mov byte [ebp - 4], 3
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00407010
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x28]
mov eax, dword [edx - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040cf20
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x24]
call fcn.00409680
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.00401ab0
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx - 0xc], edi
je 0x40f628
push 0x5c
lea ecx, [ebp - 0x1c]
call fcn.0040c7f0
add eax, 1
push eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0040cf20
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x1c]
call fcn.00409680
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.00401ab0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.0040d3f0
add esp, 0xc
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x1c]
call fcn.00409680
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.00401ab0
mov byte [ebp + 0x30c], 0
push 0x103
push edi
lea eax, [ebp + 0x30d]
push eax
call fcn.0045eb50
mov byte [ebp + 0x208], 0
push 0x103
push edi
lea ecx, [ebp + 0x209]
push ecx
call fcn.0045eb50
add esp, 0x18
mov dword [ebp - 0x2c], edi
lea edx, [ebp - 0x2c]
push edx
push 5
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x2c]
cmp eax, edi
je 0x40f69f
lea ecx, [ebp + 0x30c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40f69f
push 0x104
lea edx, [ebp + 0x208]
push edx
lea eax, [ebp + 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [ebp + 0x30c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00407010
mov bl, 8
mov byte [ebp - 4], bl
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0040c7f0
push eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040cf20
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x14]
call fcn.00409680
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00401ab0
push str.WebI800
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.004095c0
add esp, 0xc
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x14]
call fcn.00409680
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00401ab0
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
lea edx, [ebp - 0x14]
push edx
call fcn.00408c10
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], bl
call fcn.0040cae0
add esp, 4
cmp eax, edi
jne 0x40f7d6
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x14]
push eax
call fcn.00408c10
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], bl
call fcn.0040cbb0
add esp, 4
cmp eax, edi
jne 0x40f7d6
mov eax, dword [esi + 0x27f0]
cmp eax, edi
je 0x40f773
mov ecx, dword [ebp - 0x14]
push ecx
push str.Install_WebI800.dll_CFileUtil::CreateDirectory_failed._Path:_s
push eax
call fcn.004310b0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.00401ab0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00401ab0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00401ab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401ab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401ab0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0045e17e
add ebp, 0x414
mov esp, ebp
pop ebp
ret
push 0x48b9c4
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.004095c0
add esp, 0xc
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x14]
call fcn.00409680
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00401ab0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.0040d3f0
add esp, 0xc
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x14]
call fcn.00409680
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00401ab0
push edi
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.0040b8a0
mov bl, al
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.00401ab0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00401ab0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00401ab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401ab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401ab0
mov al, bl
jmp 0x40f7b1