Function at 0x442b60
Capabilities:
Check if file exists
Clear file content
Delete file
Get file attributes
Move file
Set file attributes
Set socket configuration
Timestomp file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f56cb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x358
mov eax, dword [0x55800c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x501], 0
je 0x443018
mov ecx, dword [esi + 0x270]
mov byte [esi + 0x501], 0
mov eax, dword [ecx]
mov edx, dword [eax + 0x1f8]
cmp eax, vtable.vncServer.0
jne 0x443036
mov eax, dword [ecx + 0xd8]
cmp byte [0x58a320], 2
mov edi, dword [esi + 0x198]
jb 0x442c2e
imul eax, eax, 0x3e8
push 4
mov dword [ebp - 0x360], eax
lea eax, [ebp - 0x360]
push eax
push 0x1006
push 0xffff
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x442c2e
push 4
lea eax, [ebp - 0x360]
push eax
push 0x1005
push 0xffff
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [esi + 0x4e8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [esi + 0x4e8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea edx, [esi + 0x4cc]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442c51
sub ecx, edi
je 0x442cf9
push edx
call fcn.004d58de
add esp, 4
mov word [ebp - 0x336], ax
lea eax, [esi + 0x4cf]
push eax
call fcn.004d58de
add esp, 4
mov word [ebp - 0x332], ax
lea eax, [esi + 0x4d2]
push eax
call fcn.004d58de
add esp, 4
mov word [ebp - 0x338], ax
lea eax, [esi + 0x4d7]
push eax
call fcn.004d58de
add esp, 4
mov word [ebp - 0x330], ax
lea eax, [esi + 0x4da]
push eax
call fcn.004d58de
mov word [ebp - 0x32e], ax
add esp, 4
xor eax, eax
mov dword [ebp - 0x32c], eax
lea eax, [ebp - 0x368]
push eax
lea eax, [ebp - 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x368]
push eax
push eax
push eax
push dword [esi + 0x4e8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [esi + 0x4e8]
cmp eax, 0xffffffff
je 0x442d15
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4e8], 0xffffffff
cmp byte [esi + 0x500], 0
lea edi, [esi + 0x388]
jne 0x442df0
push 0x5c
push edi
call fcn.004db407
push 9
inc eax
push str._UVNCDIR_
push eax
call fcn.004d5610
add esp, 0x14
test eax, eax
jne 0x442df0
push edi
lea eax, [ebp - 0x328]
push 0x208
push eax
call fcn.004d0170
add esp, 0xc
lea eax, [ebp - 0x328]
push 0x5c
push eax
call fcn.004db407
inc eax
push 0x2d
push eax
mov dword [ebp - 0x360], eax
call fcn.004db4b4
inc eax
push eax
lea eax, [ebp - 0x120]
push 0x104
push eax
call fcn.004d0170
add esp, 0x1c
lea eax, [ebp - 0x120]
push 0x2e
push eax
call fcn.004db407
add esp, 8
mov byte [eax], 0
mov eax, dword [ebp - 0x360]
test eax, eax
je 0x442db2
mov byte [eax], 0
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x328]
push 0x208
push eax
call fcn.004d01ca
mov ecx, dword [esi + 0x384]
lea eax, [ebp - 0x328]
add esp, 0xc
push edi
push eax
call fcn.00488ce0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 0x359], 1
jmp 0x442df7
mov byte [ebp - 0x359], 0
cmp byte [esi + 0x500], 0
je 0x442e27
cmp byte [esi + 0x503], 0
je 0x442e27
push 0x2c
push edi
call fcn.004db407
add esp, 8
test eax, eax
je 0x442e1b
mov byte [eax], 0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x442fc1
push edi
lea ecx, [ebp - 0x340]
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x32c], 0xf
mov byte [ebp - 0x340], 0
call fcn.0041c080
push ecx
push str._UVNCPFT_
lea ecx, [ebp - 0x340]
mov dword [ebp - 4], 0
call fcn.00425e90
mov ecx, eax
mov dword [ebp - 0x364], ecx
cmp ecx, 0xffffffff
je 0x442ecc
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x360], eax
cmp eax, ecx
jb 0x44303d
sub eax, ecx
mov edx, 9
cmp eax, edx
cmovb edx, eax
cmp dword [ebp - 0x32c], 0x10
lea eax, [ebp - 0x340]
cmovae eax, dword [ebp - 0x340]
add ecx, eax
mov eax, dword [ebp - 0x360]
sub eax, edx
mov dword [ebp - 0x330], eax
sub eax, dword [ebp - 0x364]
inc eax
push eax
lea eax, [ecx + edx]
push eax
push ecx
call fcn.004cdf10
add esp, 0xc
cmp byte [esi + 0x500], 0
movups xmm0, xmmword [ebp - 0x340]
movups xmmword [ebp - 0x358], xmm0
movq xmm0, qword [ebp - 0x330]
movq qword [ebp - 0x348], xmm0
jne 0x442f87
cmp byte [ebp - 0x359], 0
jne 0x442f87
cmp dword [ebp - 0x32c], 0x10
lea eax, [ebp - 0x358]
cmovae eax, dword [ebp - 0x340]
push eax
mov dword [ebp - 0x360], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x364], eax
cmp eax, 0xffffffff
je 0x442f46
test al, 1
je 0x442f46
mov ecx, eax
and ecx, 0xfffffffe
push ecx
push dword [ebp - 0x360]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
push dword [ebp - 0x360]
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
mov eax, dword [ebp - 0x364]
setne cl
mov byte [ebp - 0x359], cl
cmp eax, 0xffffffff
je 0x442f7e
push eax
push dword [ebp - 0x360]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov cl, byte [ebp - 0x359]
xor cl, 1
mov byte [esi + 0x500], cl
mov edx, dword [ebp - 0x344]
cmp edx, 0x10
jb 0x442fc1
mov ecx, dword [ebp - 0x358]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x442fb7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x443042
push edx
push ecx
call fcn.004cbf6d
add esp, 8
mov eax, dword [esi + 0x4e4]
test eax, eax
je 0x442fde
push eax
call fcn.004cbf38
add esp, 4
mov dword [esi + 0x4e4], 0
mov eax, dword [esi + 0x4e0]
test eax, eax
je 0x442ffb
push eax
call fcn.004cbf38
add esp, 4
mov dword [esi + 0x4e0], 0
mov eax, dword [esi + 0x51c]
test eax, eax
je 0x443018
push eax
call fcn.004cbf38
add esp, 4
mov dword [esi + 0x51c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004cbf27
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call edx
jmp 0x442bd6
call fcn.0041c340
call fcn.004d0120
int3