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

Disassembly:
push ebp
lea ebp, [esp - 0x30]
sub esp, 0x30
push 0xffffffffffffffff
push 0x1007143e
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x1008ab54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [ebp + 0x38]
push eax
lea ecx, [ebp + 0x2c]
call fcn.10013140
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x2c]
cmp dword [eax - 0xc], 0
jge 0x10027d46
or eax, 0xffffffff
jmp 0x10027d62
push str.Extensions
push eax
call fcn.10049be9
add esp, 8
test eax, eax
jne 0x10027d5d
or eax, 0xffffffff
jmp 0x10027d62
sub eax, dword [ebp + 0x2c]
sar eax, 1
push eax
push 0
lea ecx, [ebp + 0x1c]
push ecx
lea ecx, [ebp + 0x2c]
call fcn.1001e310
push eax
lea ecx, [ebp + 0x2c]
mov byte [ebp - 4], 1
call fcn.1000d4b0
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10027da1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.10040589
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x10027dbb
push 0x80004005
call fcn.10001100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0x20], eax
mov byte [ebp - 4], 2
call fcn.10040589
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x10027de8
push 0x80004005
call fcn.10001100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0x24], eax
mov byte [ebp - 4], 3
mov ecx, str.Baidu
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10027e28
test dx, dx
je 0x10027e24
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10027e28
add eax, 4
add ecx, 4
test dx, dx
jne 0x10027e02
xor eax, eax
jmp 0x10027e2d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10027e48
mov ecx, dword [ebp + 0x2c]
push 0x1007ab50
push ecx
push str._s_s
lea edx, [ebp + 0x20]
push edx
jmp 0x10027f0b
mov ecx, str.UCBrowser
mov eax, edi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10027e76
test dx, dx
je 0x10027e72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10027e76
add eax, 4
add ecx, 4
test dx, dx
jne 0x10027e50
xor eax, eax
jmp 0x10027e7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [ebp + 0x2c]
jne 0x10027efc
cmp dword [eax - 0xc], 0
jge 0x10027e8d
or eax, 0xffffffff
jmp 0x10027ea9
push str.Default
push eax
call fcn.10049be9
add esp, 8
test eax, eax
jne 0x10027ea4
or eax, 0xffffffff
jmp 0x10027ea9
sub eax, dword [ebp + 0x2c]
sar eax, 1
push eax
push 0
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x2c]
call fcn.1001e310
push eax
lea ecx, [ebp + 0x2c]
mov byte [ebp - 4], 4
call fcn.1000d4b0
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10027ee8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x2c]
push 0x1007ab70
push ecx
push str._s_s
lea edx, [ebp + 0x20]
push edx
jmp 0x10027f0b
push 0x1007ab88
push eax
push str._s_s
lea ecx, [ebp + 0x20]
push ecx
call fcn.10012ec0
mov edx, dword [0x10093428]
add esp, 0x10
push edi
push str.Preferences.
push edx
lea eax, [ebp + 0x24]
push str._s_s_s
push eax
call fcn.10012ec0
add esp, 0x14
call fcn.10040589
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x10027f4b
push 0x80004005
call fcn.10001100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0x2c]
push 0x1007abcc
push ecx
lea edx, [ebp + 0x18]
push str._s_s
push edx
call fcn.10012ec0
mov esi, dword [ebp + 0x18]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
push esi
call ebx
test eax, eax
je 0x10027fcb
mov ecx, str.Chrome
mov eax, edi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10027fb6
test dx, dx
je 0x10027fb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10027fb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10027f90
xor eax, eax
jmp 0x10027fbb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10027fcb
mov byte [ebp - 4], 3
lea eax, [esi - 0x10]
jmp 0x10028420
mov byte [ebp - 4], 6
mov edi, dword [ebp + 0x20]
push edi
call ebx
cmp eax, 1
je 0x1002806e
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10027ffe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10028021
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10028041
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10028067
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x100284a7
mov esi, dword [ebp + 0x24]
push esi
call ebx
cmp eax, 1
jne 0x1002807f
push esi
call fcn.10047be3
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
call fcn.10040589
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x100280a5
push 0x80004005
call fcn.10001100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0x28], eax
lea ecx, [ebp + 0x28]
push ecx
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.100253f0
add esp, 4
cmp eax, 0xffffffff
jne 0x10028186
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100280f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10028115
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10028135
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10028155
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10028067
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x100284a7
and dword [ebp + 8], 0xfffffe00
mov dword [ebp + 0xc], ebx
mov byte [ebp - 4], 9
mov eax, dword [ebp + 0x28]
cmp dword [eax - 4], 1
jle 0x100281ac
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp + 0x28]
call fcn.10001a90
mov eax, dword [ebp + 0x28]
push eax
lea ecx, [ebp - 0xa4]
call fcn.10002770
mov eax, 0xf
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
mov byte [ebp - 0x14], 1
mov byte [ebp - 0x13], 0
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0xa4]
push edx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xb
call fcn.10002220
mov eax, dword [ebp - 0x5c]
mov esi, 0x10
cmp dword [ebp - 0x48], esi
jae 0x1002821a
lea eax, [ebp - 0x5c]
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp]
push edx
add ecx, eax
push ecx
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.100370d0
test al, al
lea edi, [ebp - 0x88]
sete bl
call fcn.1001c380
mov byte [ebp - 4], 9
cmp dword [ebp - 0x8c], esi
jb 0x1002825c
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.1003efae
add esp, 4
test bl, bl
je 0x1002832d
lea eax, [ebp]
mov byte [ebp - 4], 7
call fcn.100336a0
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10028293
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100282b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100282d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100282fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10028067
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x100284a7
mov ecx, dword [ebp + 0x38]
push ecx
lea edx, [ebp + 0x10]
push edx
call fcn.10020f10
add esp, 8
mov byte [ebp - 4], 0xc
mov ecx, dword [eax]
lea eax, [ebp]
push eax
lea edx, [ebp + 0x1c]
push edx
call fcn.10020aa0
add esp, 8
mov bl, 0xe
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10028377
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x1c]
cmp dword [eax - 0xc], 0
je 0x100283a8
push eax
lea ecx, [ebp + 0x14]
call fcn.10012a90
mov esi, eax
mov byte [ebp - 4], 0xf
call fcn.10001850
mov ecx, dword [ebp + 0x3c]
push eax
call fcn.100058c0
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], bl
call fcn.10001ba0
mov esi, dword [ebp + 0x24]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x100283bd
push esi
call fcn.10047be3
mov byte [ebp - 4], 9
mov eax, dword [ebp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100283e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp]
mov byte [ebp - 4], 7
call fcn.100336a0
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002840f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 5
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10028439
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002845c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002847f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100284a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x30
mov esp, ebp
pop ebp
ret