Function at 0x4b9850
Capabilities:
Get file size
Move file
Persist via application shimming

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d43bb
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x2c]
xor ebx, ebx
push ecx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1b], bl
call fcn.004d0a90
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x4b9a7a
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp dword [esp + 0x20], ebx
ja 0x4b98ca
cmp esi, 0x10
jbe 0x4b9a7a
mov eax, dword [esp + 0x30]
push 4
push str.MSDB
push eax
call fcn.00598b64
add esp, 0xc
test eax, eax
jne 0x4b9a7a
mov ecx, dword [esp + 0x30]
add esi, 0xfffffffc
push esi
add ecx, 4
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004a7970
add esp, 0xc
mov byte [esp + 0x40], 1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x38], ebx
je 0x4b992d
push eax
lea eax, [esp + 0x1c]
push eax
mov ebx, str..patch
call fcn.004176f0
add esp, 8
mov byte [esp + 0x40], 2
mov ebx, 1
mov dword [esp + 0x24], ebx
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0040b840
mov dword [esp + 0x40], 4
test bl, 1
je 0x4b9955
and ebx, 0xfffffffe
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebx
call fcn.0040b950
mov ecx, dword [esp + 0x14]
cmp dword [ecx], 0
je 0x4b9a3e
mov eax, dword [ecx + 4]
test eax, eax
je 0x4b9a3e
mov ecx, dword [ecx]
mov edi, dword [esp + 0x1c]
push 1
push 0
push eax
push ecx
call fcn.004987f0
add esp, 0x10
test al, al
je 0x4b9a3e
lea esi, [esp + 0x28]
call fcn.004d0bd0
mov eax, dword [esp + 0x14]
cmp dword [eax + 4], 0
lea esi, [eax + 4]
mov edi, eax
je 0x4b99b6
mov eax, dword [eax]
push 0
push eax
call fcn.005967a8
add esp, 8
mov dword [edi], eax
mov dword [esi], 0
mov esi, dword [ebp + 8]
cmp dword [esi + 0x38], 0
jne 0x4b99d5
mov eax, dword [esi]
push eax
lea eax, [esi + 8]
call fcn.004b7db0
test al, al
je 0x4b9a3e
mov byte [esp + 0x13], 1
jmp 0x4b9a3e
lea edx, [esp + 0x18]
push esi
push edx
mov ebx, 0x6a23e0
call fcn.004176f0
add esp, 8
mov byte [esp + 0x40], 5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push esi
call fcn.004b8db0
test al, al
je 0x4b9a30
lea edi, [esi + 8]
call fcn.004b8100
mov eax, dword [esi]
mov edx, dword [esp + 0x18]
push 1
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4b9a30
mov esi, dword [esi]
push esi
mov eax, edi
call fcn.004b7db0
test al, al
je 0x4b9a30
mov byte [esp + 0x13], 1
mov byte [esp + 0x40], 4
lea ecx, [esp + 0x18]
call fcn.0040b950
mov byte [esp + 0x40], 1
lea ecx, [esp + 0x1c]
call fcn.0040b950
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x14]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], 0
jne 0x4b9a7a
xor edi, edi
call fcn.0043b870
mov eax, dword [esp + 0x14]
push eax
call fcn.0059392f
add esp, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x28]
push ecx
call fcn.004d0c10
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8