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

Disassembly:
mov eax, 0x100c5bfa
call fcn.100a35ac
sub esp, 0x30
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
push esi
push str.http:__
lea ecx, [ebp + 8]
mov dword [ebp - 4], 2
call fcn.10003080
cmp eax, 0xffffffff
jne 0x1008092f
push esi
push 0x100cb62c
lea ecx, [ebp + 8]
call fcn.10003080
cmp eax, 0xffffffff
jne 0x1008092f
push esi
push str.file:__
lea ecx, [ebp + 8]
call fcn.10003080
cmp eax, 0xffffffff
jne 0x1008092f
xor eax, eax
inc eax
jmp 0x10080931
xor eax, eax
mov ecx, dword [ebp + 0x24]
mov byte [ecx], al
test al, al
jne 0x10080cf4
cmp byte [ebp + 0x14], al
jne 0x10080cf4
mov eax, dword [ebp + 0x1c]
cmp dword [eax - 0xc], esi
je 0x1008096b
push 0x5c
lea ecx, [ebp + 0x1c]
call fcn.1005b3a3
push 0x100cb0a0
push 0x100d3cb4
lea ecx, [ebp + 0x1c]
call fcn.100047f1
push 0x101185a8
lea ecx, [ebp + 0x14]
call fcn.1005a319
push esi
push 0x1010d4cc
push 0x1010d4ac
push esi
push dword [edi + 0x64]
mov byte [ebp - 4], 3
call fcn.100a2fa0
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x1c]
add esp, 0x14
cmp dword [eax - 0xc], esi
je 0x100809d6
lea eax, [ebp - 0x20]
push eax
call fcn.1003ec4b
lea ecx, [ebp + 0x1c]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 4
call fcn.10005363
add esp, 0x10
push eax
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 5
call fcn.10004a20
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10001d29
jmp 0x100809fe
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
call fcn.10003561
mov ecx, dword [ebp + 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.100640e7
push eax
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 6
call fcn.10004a20
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.10001d29
push dword [ebp + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10080b2b
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], esi
je 0x10080b2b
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x100cb0a0
call fcn.10005f07
push ecx
lea eax, [ebp + 0x14]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 7
call fcn.10003561
mov byte [ebp - 4], 3
call fcn.1003f639
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.100404f4
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 8
call fcn.10005363
add esp, 0x1c
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 9
call fcn.10004a20
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.10001d29
lea eax, [ebp - 0x14]
push eax
call fcn.1003ec4b
pop ecx
push dword [ebp - 0x14]
mov byte [ebp - 4], 0xa
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10080acc
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
call fcn.10003561
call fcn.10024c36
pop ecx
push esi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp byte [ebp + 0x20], 0
je 0x10080b1c
mov ecx, dword [ebp + 0x24]
lea eax, [ebp - 0x24]
push eax
call fcn.10064264
push dword [eax]
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0xb
call fcn.10002834
mov ecx, dword [ebp - 0x24]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
mov byte [ebp - 4], 0xa
call fcn.10001d29
test bl, bl
je 0x10080b1c
mov ecx, dword [ebp + 0x24]
call fcn.1006bb2c
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.10001d29
mov eax, dword [edi + 0x70]
cmp eax, esi
je 0x10080cdd
cmp byte [eax], 0
je 0x10080cdd
cmp dword [ebp + 0x10], esi
jl 0x10080cdd
push esi
push 0x1010d4cc
push 0x1010d4ac
push esi
push dword [edi + 0x64]
call fcn.100a2fa0
add esp, 0x14
cmp byte [ebp + 0x20], 0
je 0x10080b8d
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.10064264
push dword [eax]
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x1c], 1
call fcn.10002834
mov byte [ebp + 0x20], 1
test eax, eax
je 0x10080b91
mov byte [ebp + 0x20], 0
test byte [ebp - 0x1c], 1
mov dword [ebp - 4], 3
je 0x10080ba9
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.10001d29
mov eax, dword [edi + 0x70]
push esi
push 0x10110c64
push 0x10110c40
mov dword [ebp + 0x24], esi
push esi
push dword [eax + 8]
mov byte [ebp - 4], 0xd
call fcn.100a2fa0
mov ebx, eax
add esp, 0x14
cmp ebx, esi
je 0x10080c6f
mov eax, dword [ebx]
push str.SyncRemoteFileEx3
mov ecx, ebx
call dword [eax + 0x70]
cmp eax, esi
je 0x10080c3d
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movzx ecx, byte [ebp + 0x18]
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
movzx eax, byte [ebp + 0x20]
neg eax
sbb eax, eax
and eax, 8
neg ecx
sbb ecx, ecx
and ecx, 4
or eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3c], 0x18
cmp dword [eax - 0xc], esi
je 0x10080c2d
mov dword [ebp - 0x28], eax
mov eax, dword [ebx]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, ebx
call dword [eax + 0x7c]
mov edi, dword [ebp - 0x18]
jmp 0x10080c90
mov eax, dword [ebx]
push str.SyncRemoteFileEx
mov ecx, ebx
call dword [eax + 0x70]
cmp eax, esi
je 0x10080c6f
push esi
lea ecx, [ebp + 8]
call fcn.1000357f
push dword [ebp + 0x20]
mov edx, dword [ebx]
push dword [ebp + 0x18]
mov ecx, ebx
push esi
push esi
push dword [ebp + 0x10]
push eax
lea eax, [ebp + 0x24]
push eax
call dword [edx + 0x74]
jmp 0x10080c90
push esi
lea ecx, [ebp + 8]
call fcn.1000357f
push dword [ebp + 0x18]
mov ecx, dword [edi + 0x70]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
push esi
push esi
push dword [ebp + 0x10]
push eax
lea eax, [ebp + 0x24]
push eax
call dword [edx + 0x1c]
mov dword [ebp - 4], 3
jmp 0x10080ccf
mov ecx, dword [edi + 0x64]
push dword [ebp + 0x24]
mov eax, dword [ecx]
call dword [eax + 0xa8]
mov ecx, dword [ebp + 0x28]
lea eax, [ebp + 0x14]
push eax
call fcn.10004a20
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp + 0x1c]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x24