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

Disassembly:
mov eax, 0x100c0b81
call fcn.100a0664
sub esp, 0x30
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
cmp byte [esi + 0x45], 0
mov dword [ebp - 4], 3
jne 0x100833df
xor edi, edi
cmp dword [esi + 0x48], edi
je 0x100833df
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
mov ebx, 0x100c503c
push ebx
call fcn.100057f4
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.CurrentLayout
mov byte [ebp - 4], 4
call fcn.100057f4
mov byte [ebp - 4], 3
call fcn.10044598
add esp, 0xc
cmp dword [ebp + 0x14], eax
je 0x10082eb1
cmp dword [ebp + 0x14], 0xffffffff
jne 0x100833df
mov eax, dword [ebp + 0x24]
cmp dword [eax - 0xc], edi
je 0x10082ed1
push 0x5c
lea ecx, [ebp + 0x24]
call fcn.1005e246
push ebx
push 0x100cdb94
lea ecx, [ebp + 0x24]
call fcn.10004473
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.100449b3
pop ecx
pop ecx
mov eax, dword [ebp + 0x20]
cmp dword [eax - 0xc], edi
mov byte [ebp - 4], 5
jle 0x10082f19
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.10004f80
add esp, 0xc
push eax
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 6
call fcn.100046db
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.10001ccd
push edi
push str.http:__
lea ecx, [ebp + 8]
call fcn.10002fb2
cmp eax, 0xffffffff
jne 0x1008304b
push edi
push 0x100c54a0
lea ecx, [ebp + 8]
call fcn.10002fb2
cmp eax, 0xffffffff
jne 0x1008304b
push edi
push str.file:__
lea ecx, [ebp + 8]
call fcn.10002fb2
cmp eax, 0xffffffff
jne 0x1008304b
cmp byte [ebp + 0x18], 0
je 0x10082f9f
lea eax, [ebp + 0x10]
push eax
call fcn.10043106
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp + 0x18]
push eax
mov byte [ebp - 4], 7
call fcn.10004f80
add esp, 0x10
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 8
call fcn.100046db
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffff0
call fcn.10001ccd
mov ecx, dword [ebp + 0x10]
jmp 0x10082fc3
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.10004f80
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 9
call fcn.100046db
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.10001ccd
mov byte [esi + 0x44], 1
cmp dword [esi + 0x40], edi
je 0x10083025
push dword [ebp + 8]
call fcn.1009e314
push edi
push 0x101033fc
push 0x101033dc
push edi
push dword [esi + 0x40]
mov dword [ebp + 0x18], eax
call fcn.100a0cb6
add esp, 0x18
push 0xfde9
push 0x21
lea ecx, [ebp + 0x18]
push ecx
mov ecx, eax
call fcn.1006269c
push dword [ebp + 0x18]
lea ecx, [ebp + 8]
call fcn.100049c6
mov ecx, dword [esi + 0x40]
push dword [ebp + 0x18]
mov eax, dword [ecx]
call dword [eax + 0xa8]
push dword [ebp + 0x20]
mov edi, dword [esi + 0x34]
push 1
push 1
push dword [ebp + 8]
mov ecx, esi
call fcn.10082725
cmp dword [esi + 0x34], 0xffffff92
jne 0x10083042
mov dword [esi + 0x34], edi
mov byte [esi + 0x44], 0
jmp 0x100833d4
cmp byte [ebp + 0x18], 0
jne 0x100833d4
push 0x1010dc04
lea ecx, [ebp + 0x18]
call fcn.1005d077
push edi
push 0x101033fc
push 0x101033dc
push edi
push dword [esi + 0x40]
mov byte [ebp - 4], 0xa
call fcn.100a0cb6
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x24]
add esp, 0x14
cmp dword [eax - 0xc], edi
je 0x100830c0
lea eax, [ebp - 0x20]
push eax
call fcn.10043106
lea ecx, [ebp + 0x24]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0xb
call fcn.10004f80
add esp, 0x10
push eax
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0xc
call fcn.100046db
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.10001ccd
jmp 0x100830e8
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
call fcn.100033f5
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x20]
push eax
call fcn.10068105
push eax
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0xd
call fcn.100046db
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xa
call fcn.10001ccd
push dword [ebp + 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100831f5
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], edi
je 0x100831f5
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push ebx
call fcn.100057f4
push ecx
lea eax, [ebp + 0x18]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0xe
call fcn.100033f5
mov byte [ebp - 4], 0xa
call fcn.10043af4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10004f80
add esp, 0x14
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0xf
call fcn.100046db
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xa
call fcn.10001ccd
lea eax, [ebp - 0x18]
push eax
call fcn.10043106
pop ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], 0x10
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1008319c
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
call fcn.100033f5
call fcn.10029e5b
pop ecx
push edi
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x20]
push eax
call fcn.10068282
push dword [eax]
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x11
call fcn.1000272b
mov ecx, dword [ebp - 0x20]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
mov byte [ebp - 4], 0x10
call fcn.10001ccd
test bl, bl
je 0x100831e6
mov ecx, dword [ebp + 0x14]
call fcn.10070630
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xa
call fcn.10001ccd
mov eax, dword [esi + 0x48]
cmp byte [eax], 0
je 0x1008338a
cmp dword [ebp + 0x10], edi
jl 0x1008338a
push edi
push 0x101033fc
push 0x101033dc
push edi
push dword [esi + 0x40]
call fcn.100a0cb6
add esp, 0x14
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.10068282
push dword [eax]
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x12
call fcn.1000272b
mov ecx, dword [ebp - 0x20]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
add ecx, 0xfffffff0
mov byte [ebp - 0x24], bl
call fcn.10001ccd
mov eax, dword [esi + 0x48]
push edi
push 0x101069fc
push 0x101069d8
mov dword [ebp + 0x14], edi
push edi
push dword [eax + 8]
mov byte [ebp - 4], 0x13
call fcn.100a0cb6
add esp, 0x14
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x1008331a
mov edx, dword [eax]
push str.SyncRemoteFileEx3
mov ecx, eax
call dword [edx + 0x70]
cmp eax, edi
je 0x100832e5
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 + 0x1c]
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
movzx eax, bl
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 + 0x24]
mov dword [ebp - 0x3c], 0x18
cmp dword [eax - 0xc], 0
je 0x100832d5
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
lea edx, [ebp - 0x3c]
push edx
call dword [eax + 0x7c]
xor edi, edi
jmp 0x1008333b
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
push str.SyncRemoteFileEx
mov ecx, ebx
call dword [eax + 0x70]
cmp eax, edi
je 0x1008331a
push edi
lea ecx, [ebp + 8]
call fcn.10003413
push dword [ebp - 0x24]
mov edx, dword [ebx]
push dword [ebp + 0x1c]
mov ecx, ebx
push edi
push edi
push dword [ebp + 0x10]
push eax
lea eax, [ebp + 0x14]
push eax
call dword [edx + 0x74]
jmp 0x1008333b
push edi
lea ecx, [ebp + 8]
call fcn.10003413
push dword [ebp + 0x1c]
mov ecx, dword [esi + 0x48]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
push edi
push edi
push dword [ebp + 0x10]
push eax
lea eax, [ebp + 0x14]
push eax
call dword [edx + 0x1c]
mov dword [ebp - 4], 0xa
jmp 0x1008337c
mov ecx, dword [esi + 0x40]
push dword [ebp + 0x14]
mov eax, dword [ecx]
call dword [eax + 0xa8]
push dword [ebp + 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x100833b7
push dword [ebp + 0x20]
lea ecx, [ebp + 0x18]
push eax
push eax
push edi
mov byte [esi + 0x44], al
call fcn.10003413
push eax
mov ecx, esi
call fcn.10082725
mov byte [esi + 0x44], 0
jmp 0x100833c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100833c9
mov dword [esi + 0x34], 0xffffff92
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffff0
call fcn.10001ccd
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10001ccd
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10001ccd
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.10001ccd
mov ecx, dword [ebp + 0x20]
add ecx, 0xfffffff0
call fcn.10001ccd
mov ecx, dword [ebp + 0x24]
add ecx, 0xfffffff0
call fcn.10001ccd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x20