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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5579c8
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5ad6f0]
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 esi, ecx
mov dword [ebp - 0x23c], esi
lea eax, [esi + 0x3c]
mov dword [ebp - 0x22c], 0
push 0
push dword [eax]
mov dword [esi + 0x24], 2
push 0
mov dword [ebp - 0x24c], eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor ebx, ebx
mov dword [ebp - 0x224], str.update.exe
lea eax, [esi + 0x30]
mov dword [ebp - 0x220], 0x56a07c
mov dword [ebp - 0x21c], str.360Base.dll
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x250], eax
nop dword [eax + eax]
push str.update
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00411ba0
add esp, 0xc
mov ebx, dword [ebp + ebx*4 - 0x224]
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x44170b
xor ecx, ecx
jmp 0x44171f
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x441710
sub ecx, edx
sar ecx, 1
mov eax, dword [ebp - 0x228]
mov edx, ebx
sub edx, eax
mov dword [ebp - 0x240], ebx
sar edx, 1
mov dword [ebp - 0x230], edx
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x248], esi
test ecx, ecx
js 0x441a70
test ebx, ebx
jne 0x441750
xor edi, edi
jmp 0x441762
push ecx
push ebx
call fcn.00517503
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x228]
mov ecx, SysReAllocString
sub ecx, edi
cmp ecx, esi
jl 0x441a70
add esi, edi
js 0x441a70
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x44179c
push esi
lea ecx, [ebp - 0x228]
call fcn.00406ba0
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x248]
cmp ecx, edx
lea ecx, [eax + ecx*2]
jbe 0x4417b5
mov ecx, dword [ebp - 0x240]
push edi
push ecx
lea eax, [eax + edx*2]
push edi
push eax
call fcn.00406240
mov eax, dword [ebp - 0x228]
add esp, 0x10
cmp esi, dword [eax - 8]
jg 0x441a70
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x228]
push ebx
push dword [ebp - 0x24c]
mov word [eax + esi*2], cx
lea eax, [ebp - 0x234]
push eax
call fcn.00411ba0
add esp, 0xc
push dword [ebp - 0x228]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x441974
mov eax, dword [ebp - 0x23c]
mov byte [ebp - 4], 2
mov eax, dword [eax + 0x30]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x441829
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x44183d
call fcn.00406530
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x441a66
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
or dword [ebp - 0x22c], 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x244], esi
test ebx, ebx
jne 0x44185c
xor edi, edi
jmp 0x441870
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x441861
sub edi, ecx
sar edi, 1
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x240], eax
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x230], edx
lea ebx, [edx + edi]
test ebx, ebx
js 0x441a70
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4418bc
push ebx
lea ecx, [ebp - 0x244]
call fcn.00406ba0
mov esi, dword [ebp - 0x244]
mov edx, dword [ebp - 0x230]
push edx
push dword [ebp - 0x240]
push edx
push esi
call fcn.00406240
mov eax, dword [ebp - 0x238]
push edi
push dword [ebp + eax*4 - 0x224]
mov eax, dword [ebp - 0x230]
push edi
lea eax, [esi + eax*2]
push eax
call fcn.00406240
add esp, 0x20
cmp ebx, dword [esi - 8]
jg 0x441a70
mov dword [esi - 0xc], ebx
lea edi, [esi - 0x10]
xor eax, eax
mov word [esi + ebx*2], ax
mov ebx, dword [ebp - 0x228]
add ebx, 0xfffffff0
cmp edi, ebx
je 0x441954
cmp dword [ebx + 0xc], eax
jl 0x441945
mov eax, dword [edi]
cmp eax, dword [ebx]
jne 0x441945
push edi
call fcn.004129e0
add esp, 4
lea edx, [ebx + 0xc]
mov esi, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44193a
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [esi + 0x10]
mov dword [ebp - 0x228], eax
jmp 0x441954
push dword [esi - 0xc]
lea ecx, [ebp - 0x228]
push esi
call fcn.0040adc0
and dword [ebp - 0x22c], 0xfffffffb
or eax, 0xffffffff
mov byte [ebp - 4], 1
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x441974
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push dword [ebp - 0x234]
push dword [ebp - 0x228]
call esi
mov edx, dword [ebp - 0x234]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4419ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x228]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4419d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x250]
inc ebx
mov dword [ebp - 0x238], ebx
cmp ebx, 3
jb 0x4416e0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00513d10
mov ebx, dword [ebp - 0x23c]
lea eax, [ebp - 0x218]
add esp, 0xc
push dword [ebx + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.load_updatehalo.ini
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebx + 0x34]
call esi
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.004d684f
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00406210
push 0x80070057
call fcn.00406210
int3