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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60d45b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
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.004f7970
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x4e060a
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 0x4e045a
cmp esi, 0x10
jbe 0x4e060a
mov eax, dword [esp + 0x30]
push 4
push str.MSDB
push eax
call fcn.005c5ac3
add esp, 0xc
test eax, eax
jne 0x4e060a
mov ecx, dword [esp + 0x30]
add esi, 0xfffffffc
push esi
add ecx, 4
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004ce6d0
add esp, 0xc
mov byte [esp + 0x40], 1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x38], ebx
je 0x4e04bd
push eax
lea eax, [esp + 0x1c]
push eax
mov ebx, str..patch
call fcn.0041e2b0
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.0040b930
mov dword [esp + 0x40], 4
test bl, 1
je 0x4e04e5
and ebx, 0xfffffffe
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebx
call fcn.0040ba40
mov ecx, dword [esp + 0x14]
cmp dword [ecx], 0
je 0x4e05ce
mov eax, dword [ecx + 4]
test eax, eax
je 0x4e05ce
mov ecx, dword [ecx]
mov edi, dword [esp + 0x1c]
push 1
push 0
push eax
push ecx
call fcn.004c0920
add esp, 0x10
test al, al
je 0x4e05ce
lea esi, [esp + 0x28]
call fcn.004f7ab0
mov eax, dword [esp + 0x14]
cmp dword [eax + 4], 0
lea esi, [eax + 4]
mov edi, eax
je 0x4e0546
mov eax, dword [eax]
push 0
push eax
call fcn.005c6a69
add esp, 8
mov dword [edi], eax
mov dword [esi], 0
mov esi, dword [ebp + 8]
cmp dword [esi + 0x38], 0
jne 0x4e0565
mov eax, dword [esi]
push eax
lea eax, [esi + 8]
call fcn.004de940
test al, al
je 0x4e05ce
mov byte [esp + 0x13], 1
jmp 0x4e05ce
lea edx, [esp + 0x18]
push esi
push edx
mov ebx, 0x6daa04
call fcn.0041e2b0
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.004df940
test al, al
je 0x4e05c0
lea edi, [esi + 8]
call fcn.004dec90
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 0x4e05c0
mov esi, dword [esi]
push esi
mov eax, edi
call fcn.004de940
test al, al
je 0x4e05c0
mov byte [esp + 0x13], 1
mov byte [esp + 0x40], 4
lea ecx, [esp + 0x18]
call fcn.0040ba40
mov byte [esp + 0x40], 1
lea ecx, [esp + 0x1c]
call fcn.0040ba40
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 0x4e060a
xor edi, edi
call fcn.004c24f0
mov eax, dword [esp + 0x14]
push eax
call fcn.005c396f
add esp, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x28]
push ecx
call fcn.004f7af0
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