Function at 0x10040bbb
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi - 0xc], edi
je 0x10040f92
mov eax, dword [esi + 0x54]
cmp eax, edi
je 0x10040f92
push edi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, ebx
jne 0x10040f92
cmp dword [esi + 0x54], edi
je 0x10040f92
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
call fcn.10009e15
push str.browserNavigate
lea ecx, [ebp - 4]
call fcn.10004959
test eax, eax
jne 0x10040d5a
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x3c]
call fcn.1003103a
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp + 0xc]
call fcn.10032ce6
mov eax, dword [eax]
cmp eax, edi
je 0x10040c4b
mov eax, dword [eax]
jmp 0x10040c4d
xor eax, eax
push eax
lea ecx, [ebp + 8]
call fcn.10009e15
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
je 0x10040c65
call fcn.100050b9
mov dword [ebp + 0xc], edi
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x3c]
push eax
call ebx
push edi
mov edi, str.newwindow
push edi
lea ecx, [ebp + 8]
call fcn.1000506b
test eax, eax
jle 0x10040d21
push 0x1010d92c
push edi
lea ecx, [ebp + 8]
call fcn.10006657
push dword [ebp + 8]
lea ecx, [ebp - 0x3c]
call fcn.1000d56b
cmp byte [esi + 0x74], 0
mov ecx, dword [esi + 0x54]
je 0x10040cdf
call fcn.100741ad
mov esi, dword [esi + 0x5c]
push 3
pop eax
lea ecx, [ebp - 0x1c]
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x24], 0x800
mov eax, dword [esi]
push esi
call dword [eax + 0xd0]
lea eax, [ebp - 0x2c]
push eax
call ebx
jmp 0x10040d19
and dword [ebp + 0x10], 0
call fcn.100741ad
lea eax, [ebp + 0x10]
push 0xffffffffffffffff
push eax
call fcn.10074bca
pop ecx
pop ecx
test eax, eax
je 0x10040d10
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push edx
push edx
push edx
lea edx, [ebp - 0x3c]
push edx
push eax
call dword [ecx + 0xd0]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x3c]
push eax
call ebx
jmp 0x10040d37
mov esi, dword [esi + 0x5c]
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 0x10]
push esi
call dword [eax + 0xd0]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10003f60
lea eax, [ebp - 0x1c]
push eax
call ebx
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.10003f60
xor eax, eax
jmp 0x10040f97
mov ebx, str.ReloadAll
push ebx
lea ecx, [ebp - 4]
call fcn.10004959
test eax, eax
jne 0x10040d81
mov esi, dword [esi + 0x54]
lea ecx, [esi + 0xb8]
mov eax, dword [ecx]
push edi
push ebx
call dword [eax + 0xb8]
jmp 0x10040d48
push str.GetCachedImageLocation
lea ecx, [ebp - 4]
call fcn.10004959
test eax, eax
jne 0x10040f80
push dword [ebp + 0x10]
lea ecx, [ebp - 0x3c]
call fcn.1003103a
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp + 0x10]
call fcn.10032ce6
mov eax, dword [eax]
cmp eax, edi
je 0x10040db7
mov eax, dword [eax]
jmp 0x10040db9
xor eax, eax
push eax
lea ecx, [ebp + 0xc]
call fcn.10009e15
mov ecx, dword [ebp + 0x10]
cmp ecx, edi
je 0x10040dd1
call fcn.100050b9
mov dword [ebp + 0x10], edi
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push ecx
lea eax, [ebp + 0xc]
mov dword [ebp + 0x10], esp
mov ecx, esp
push eax
call fcn.1000548f
lea eax, [ebp + 8]
push eax
call fcn.1004abc9
pop ecx
pop ecx
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10040f7b
push 0x101519f8
lea ecx, [ebp + 0x10]
call fcn.1007170f
call fcn.100b9bd4
mov esi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test al, al
je 0x10040ea2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
cmp eax, 2
je 0x10040e3c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
cmp eax, 3
jne 0x10040ea2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp + 0x10]
call fcn.1000688b
push 0x104
lea ecx, [ebp + 0x10]
call fcn.100054ad
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
call fcn.1000dbfd
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.100627b8
pop ecx
push eax
lea eax, [ebp - 8]
push eax
call fcn.10006f5b
add esp, 0xc
push eax
lea ecx, [ebp + 0x10]
call fcn.1000688b
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.10003f60
jmp 0x10040eae
lea eax, [ebp + 8]
push eax
lea ecx, [ebp + 0x10]
call fcn.1000688b
push 4
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp + 0xc]
call fcn.10028e53
mov esi, str..ico
push esi
mov ecx, eax
call fcn.10004959
mov ecx, dword [ebp - 0xc]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.10003f60
test bl, bl
je 0x10040f05
push esi
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10006fb9
add esp, 0xc
push eax
lea ecx, [ebp + 0x10]
call fcn.1000688b
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.10003f60
mov ebx, dword [ebp + 0x10]
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.1000688b
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.1000d56b
mov esi, eax
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x14]
xor ecx, ecx
mov word [eax], cx
lea esi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebx - 0x10]
call fcn.10003f60
xor esi, esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.10003f60
mov eax, esi
jmp 0x10040f97
xor esi, esi
inc esi
jmp 0x10040f56
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.10003f60
mov eax, 0x80004001
jmp 0x10040f97
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret 0x10