Function at 0x44d310
Capabilities:
Copy file
Delete file
Set file attributes
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x224]
sub esp, 0x224
push 0xffffffffffffffff
push 0x493d4a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4c4074]
xor eax, ebp
mov dword [ebp + 0x220], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x24], ebx
push 0x104
lea eax, [ebp + 0x18]
mov dword [ebp - 0x1c], 0
push eax
push dword [0x4c5088]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp + 0x18]
lea esi, [ebx + 0x14]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44d373
sub ecx, edx
lea eax, [ebp + 0x18]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004023a0
cmp byte [ebp + 0x22c], 0
je 0x44d4bd
push ecx
mov edx, 0x4ad554
lea ecx, [ebp]
call fcn.00404740
add esp, 4
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 8
jb 0x44d3bd
mov edx, dword [edx]
test edx, edx
jne 0x44d3c5
xor ecx, ecx
jmp 0x44d3df
mov ecx, edx
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44d3d0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00407350
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x14]
cmp edx, 8
jb 0x44d429
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44d41f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44d860
push edx
push ecx
call fcn.0046e3c2
add esp, 8
xor eax, eax
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
mov word [ebp], ax
push 0x5c
push dword [esi]
call fcn.0046fb32
mov ecx, eax
add esp, 8
or edi, 0xffffffff
test ecx, ecx
je 0x44d505
mov eax, dword [esi]
sub ecx, eax
sar ecx, 1
js 0x44d505
mov eax, dword [eax - 0xc]
sub eax, ecx
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00409c40
mov dword [ebp - 4], 3
mov edx, dword [eax]
mov ebx, dword [esi]
sub ebx, 0x10
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x44d4e4
cmp dword [ebx + 0xc], 0
jl 0x44d4d9
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x44d4d9
call fcn.004025a0
mov dword [ebp - 0x10], eax
lea edx, [ebx + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44d4b6
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [esi], eax
jmp 0x44d4e4
mov edx, ebx
mov ecx, esi
call fcn.00463f90
test al, al
jne 0x44d43d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x44d83b
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.00407350
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44d505
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x2e
push dword [esi]
call fcn.0046fb32
add esp, 8
test eax, eax
je 0x44d5a4
sub eax, dword [esi]
sar eax, 1
js 0x44d5a4
push eax
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00409b30
mov dword [ebp - 4], 5
mov edx, dword [eax]
mov ebx, dword [esi]
sub ebx, 0x10
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x44d583
cmp dword [ebx + 0xc], 0
jl 0x44d578
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x44d578
call fcn.004025a0
mov dword [ebp - 0x18], eax
lea edx, [ebx + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44d571
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [esi], eax
jmp 0x44d583
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.00407350
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44d5a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 7
lea eax, [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov ecx, ebx
push str..exe
push esi
push eax
call fcn.0044ce70
add ebx, 4
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], ebx
mov edx, dword [eax]
mov ebx, dword [ebx]
sub ebx, 0x10
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x44d621
cmp dword [ebx + 0xc], 0
jl 0x44d611
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x44d611
call fcn.004025a0
mov dword [ebp - 0x18], eax
lea edx, [ebx + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44d607
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebx], eax
jmp 0x44d624
push dword [edx - 0xc]
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
push edx
call fcn.00407350
jmp 0x44d624
mov ebx, dword [ebp - 0x10]
mov eax, 1
mov dword [ebp - 0x1c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44d653
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [ebx]
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x80
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], 9
lea eax, [ebp - 0x18]
mov ebx, dword [ebp - 0x24]
mov ecx, ebx
push str..ini
push esi
push eax
call fcn.0044ce70
mov esi, dword [ebx + 0x10]
add ebx, 0x10
sub esi, 0x10
mov dword [ebp - 0x1c], 2
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x44d6e1
cmp dword [esi + 0xc], 0
jl 0x44d6d6
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x44d6d6
call fcn.004025a0
mov dword [ebp - 0x20], eax
lea edx, [esi + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44d6cf
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ebx], eax
jmp 0x44d6e1
push dword [edx - 0xc]
mov ecx, ebx
push edx
call fcn.00407350
mov eax, 2
mov dword [ebp - 0x1c], eax
and eax, 0xfffffffd
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44d710
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], 0x4a85d0
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push 0
push eax
push 2
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0xfeff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x44d77d
test esi, esi
je 0x44d770
push esi
call eax
mov dword [ebp - 0x10], 0
xor esi, esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x4a85d0
test esi, esi
je 0x44d799
push esi
call eax
mov dword [ebp - 0x10], 0
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x44d865
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xc
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.004071f0
test al, al
jne 0x44d7ec
lea ecx, [ebp + 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44d7d0
sub ecx, edx
lea eax, [ebp + 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00407350
mov dword [ebp - 4], 0xd
lea eax, [ebp - 0x10]
mov esi, dword [ebp - 0x24]
mov ecx, esi
push eax
push str.RealUpdaterPath
call fcn.0044d940
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x44d825
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esi + 4]
mov ecx, esi
push eax
call fcn.0044d870
push ebx
lea ecx, [esi + 0x18]
call fcn.00407f10
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 + 0x220]
xor ecx, ebp
call fcn.0046e38e
lea esp, [ebp + 0x224]
pop ebp
ret 4
call fcn.004736d9
push 0x80004005
call fcn.004024c0
int3