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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1005d09c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x424], ecx
push ebx
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x1000aaf5
test ebx, ebx
je 0x1000aaf5
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1002c190
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x1005e66c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.CefRes.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000a850
push esi
sub ecx, edx
lea eax, [ebp - 0x20c]
push edi
sar ecx, 1
push ecx
push eax
mov ecx, 0x1005e3d4
call fcn.10007680
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
je 0x1000a987
lea eax, [ebp - 0x20c]
push eax
call fcn.10018b90
add esp, 4
test eax, eax
je 0x1000a987
call fcn.10006e00
test eax, eax
je 0x1000ab08
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x41c], eax
call fcn.10006e00
test eax, eax
je 0x1000ab08
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x20c]
test eax, 0xffff0000
jne 0x1000a8fa
movzx eax, ax
lea ecx, [ebp - 0x418]
push eax
call fcn.10007390
jmp 0x1000a925
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000a903
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x418]
call fcn.10007680
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.10006ec0
mov edx, dword [ebp - 0x418]
add esp, 8
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000a958
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x41c]
push ebx
push esi
call fcn.10011d60
add esp, 8
add esi, 0xfffffff0
test eax, eax
jns 0x1000aac4
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000a987
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.1002c190
add esp, 0xc
lea eax, [ebp - 0x414]
push str.CefRes.dll
push dword [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000aad6
lea eax, [ebp - 0x414]
push eax
call fcn.10018b90
add esp, 4
test eax, eax
je 0x1000aad6
call fcn.10006e00
test eax, eax
je 0x1000ab08
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x41c], eax
call fcn.10006e00
test eax, eax
je 0x1000ab08
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x414]
test eax, 0xffff0000
jne 0x1000aa39
movzx eax, ax
lea ecx, [ebp - 0x418]
push eax
call fcn.10007390
jmp 0x1000aa64
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000aa42
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x418]
call fcn.10007680
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.10006ec0
mov edx, dword [ebp - 0x418]
add esp, 8
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000aa97
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x41c]
push ebx
push esi
call fcn.10011d60
add esp, 8
test eax, eax
js 0x1000aac1
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x1000aad6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x424]
push ebx
call sym.CefHelper.dll_StartWithProgress
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001b500
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.1001b500
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.10006bd0
int3