Function at 0x1000b380
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039bd1
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1004e014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
push 0
mov dword [ebp - 0x20], 0
push dword [ebx + 0x3c]
mov dword [ebx + 0x24], 2
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor esi, esi
mov dword [ebp - 0x40], str.update.exe
lea eax, [ebx + 0x30]
mov dword [ebp - 0x3c], str.Safelive.dll
mov dword [ebp - 0x28], esi
or edi, 0xffffffff
mov dword [ebp - 0x38], eax
push 0x1003c3c8
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
call fcn.10009380
add esp, 0xc
mov ebx, dword [ebp + esi*4 - 0x40]
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x1000b413
xor eax, eax
jmp 0x1000b42f
mov eax, ebx
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000b420
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x14]
call fcn.1000b2c0
mov eax, dword [ebp - 0x2c]
add eax, 0x3c
mov dword [ebp - 0x18], 0
push ebx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10009380
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000b476
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call ebx
jmp 0x1000b5c3
mov edi, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], 0
mov eax, dword [edi + 0x30]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x1000b497
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x1000b4ab
call fcn.10008630
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x1000b690
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
or dword [ebp - 0x20], 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
test ebx, ebx
je 0x1000b4d2
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1000b4c3
sub ebx, ecx
sar ebx, 1
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x30], eax
mov edi, dword [eax - 0xc]
mov dword [ebp - 0x34], edi
lea edx, [edi + ebx]
test edx, edx
js 0x1000b69a
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x1000b506
push edx
lea ecx, [ebp - 0x24]
call fcn.10008840
mov esi, dword [ebp - 0x24]
add edi, edi
push edi
push dword [ebp - 0x30]
push edi
push esi
call fcn.10008eb0
mov ecx, dword [ebp - 0x28]
lea eax, [ebx + ebx]
push eax
push dword [ebp + ecx*4 - 0x40]
push eax
lea eax, [edi + esi]
push eax
call fcn.10008eb0
mov eax, dword [ebp - 0x34]
add esp, 0x20
add eax, ebx
cmp eax, dword [esi - 8]
jg 0x1000b69a
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea edi, [esi - 0x10]
mov ebx, dword [ebp - 0x14]
add ebx, 0xfffffff0
cmp edi, ebx
je 0x1000b590
cmp dword [ebx + 0xc], ecx
jl 0x1000b584
mov eax, dword [edi]
cmp eax, dword [ebx]
jne 0x1000b584
push edi
call fcn.10008380
add esp, 4
lea edx, [ebx + 0xc]
mov esi, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000b57c
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [esi + 0x10]
mov dword [ebp - 0x14], eax
jmp 0x1000b590
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
push esi
call fcn.100089b0
and dword [ebp - 0x20], 0xfffffffb
or eax, 0xffffffff
mov byte [ebp - 4], 1
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1000b5ad
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call ebx
mov esi, dword [ebp - 0x28]
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000b5e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000b602
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x38]
inc esi
mov dword [ebp - 0x28], esi
cmp esi, 2
jb 0x1000b3e7
mov esi, dword [ebp - 0x2c]
push 0x1003c270
mov dword [ebp - 0x1c], 0
lea eax, [esi + 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10009380
add esp, 0xc
push 0xa
push str.update.ini
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 3
call fcn.1000b2c0
push 0
push dword [ebp - 0x1c]
push dword [esi + 0x34]
call ebx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1000b670
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000d872
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10008100
push 0x80070057
call fcn.10008100
int3