Function at 0x4b8450
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4f81a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov edx, dword [0x50d0e0]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], edx
mov eax, dword [ebp + 0xe4]
xor esi, esi
cmp eax, 0xffffffff
mov dword [esp + 0x70], esi
mov dword [esp + 0x14], eax
je 0x4b869c
cmp dword [ebp + 0xdc], esi
jne 0x4b869c
mov ebx, dword [ebp + 0xd4]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x44]
mov dword [esp + 0x40], esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x48], 1
mov eax, dword [edx - 8]
cmp eax, esi
je 0x4b84e1
cmp dword [edx - 0xc], esi
jl 0x4b84d3
lea ecx, [esp + 0x10]
call fcn.00402350
jmp 0x4b84e1
push 0x5209fc
lea ecx, [esp + 0x14]
call fcn.00406e00
mov esi, 0x100
lea ecx, [esp + 0x10]
push esi
mov dword [esp + 0x5c], esi
call fcn.004569b0
xor edi, edi
mov dword [esp + 0x54], eax
cmp eax, edi
je 0x4b853a
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 4]
lea eax, [esp + 0x40]
push eax
push ecx
push 0x1073
push edx
call edi
lea ecx, [esi - 1]
cmp eax, ecx
jl 0x4b8538
add esi, esi
lea ecx, [esp + 0x10]
push esi
mov dword [esp + 0x5c], esi
call fcn.004569b0
test eax, eax
mov dword [esp + 0x54], eax
jne 0x4b8504
xor edi, edi
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00407e30
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], edi
jle 0x4b869c
mov dword [esp + 0x1c], edi
lea edx, [esp + 0x18]
push edi
push edx
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x80], 1
call fcn.0040bd90
mov ecx, ebp
call fcn.004aaab0
cmp eax, edi
je 0x4b8685
push 0x5209fc
lea ecx, [esp + 0x34]
mov word [esp + 0x34], di
call fcn.00406940
push str.updatetime
lea ecx, [esp + 0x24]
mov word [esp + 0x24], di
call fcn.00406940
lea ecx, [esp + 0x14]
mov ebx, 3
push ecx
push str.setAttribute
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], bl
call fcn.00436950
cmp eax, edi
jl 0x4b85e3
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edi
lea eax, [esp + 0x24]
push edx
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00406a60
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x1c], eax
call esi
lea eax, [esp + 0x30]
push eax
call esi
mov word [esp + 0x20], bx
mov ebx, 1
mov dword [esp + 0x28], ebx
push str.needup
lea ecx, [esp + 0x34]
mov word [esp + 0x34], di
call fcn.00406940
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 5
push ecx
push str.setAttribute
lea ecx, [esp + 0x24]
call fcn.00436950
cmp eax, edi
jl 0x4b8651
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edi
lea eax, [esp + 0x34]
push edx
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00406a60
lea edx, [esp + 0x30]
mov dword [esp + 0x18], eax
push edx
call esi
lea eax, [esp + 0x20]
push eax
call esi
mov ecx, dword [ebp + 0xe0]
mov dword [ebp + 0xdc], ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebp
push edi
push 0x4aa690
call fcn.004df750
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x70], 0
cmp eax, edi
je 0x4b8698
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov edx, dword [esp + 0x10]
mov ecx, dword [0x50d0e4]
lea eax, [edx - 0xc]
cmp eax, ecx
je 0x4b86c7
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4b86c7
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff4
push ecx
call fcn.004de3a6
add esp, 4
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret