Function at 0x47b140
Capabilities:
Delete file
Resolve function by parsing pe exports
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5faf6d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor ebx, ebx
mov edi, dword [ebp + 4]
mov dword [esp + 0x48], ebp
cmp edi, ebx
je 0x47b221
mov esi, dword [edi + 8]
mov ecx, ebp
push esi
call fcn.0047aca0
cmp eax, ebx
je 0x47b187
mov dword [eax + 0x46c], ebx
push esi
lea eax, [esp + 0x54]
push str.SoftwareDownloadManager_ld
push eax
call fcn.005c5558
add esp, 0xc
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x28]
lea eax, [esp + 0x50]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push 0x6ce7c8
push ebx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x47b1ee
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x44]
push 4
push ecx
push 4
push ebx
push str.queueID
push edx
mov dword [esp + 0x5c], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x6cefbc]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47b217
mov edx, dword [0x6cefbc]
push esi
push 0x139b
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [edi]
cmp edi, ebx
jne 0x47b172
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov word [esp + 0x14], bx
mov edi, dword [0x6cee40]
mov dword [esp + 0xc0], ebx
cmp edi, ebx
jne 0x47b244
mov edi, 0x6cee44
mov ecx, dword [ebp + 0x64]
lea eax, [esp + 0x78]
push 0xa
push eax
push ecx
call fcn.005c62ca
mov edx, str._sScheduler_s__s.dt
add esp, 0xc
test edx, edx
mov esi, eax
je 0x47b388
cmp edi, ebx
je 0x47b388
cmp esi, ebx
je 0x47b388
push ebx
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x28], bx
call fcn.00402890
push edi
lea ecx, [esp + 0x30]
mov byte [esp + 0xc4], 1
call fcn.0040d680
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc4], 2
call fcn.0040d680
lea ecx, [esp + 0x10]
mov byte [esp + 0xc0], 3
call fcn.00401070
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x38]
call fcn.00401f50
push eax
call fcn.005c4b4a
add esp, 4
lea ecx, [esp + 0x2c]
mov edi, eax
call fcn.00401f50
push eax
call fcn.005c4b4a
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005dd58d
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x47b352
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x38]
call fcn.00401f50
push eax
lea ecx, [esp + 0x30]
call fcn.00401f50
push eax
lea ecx, [esp + 0x24]
call fcn.00401f50
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005c4ada
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005c4b4a
add esp, 0x18
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xc0], 2
call fcn.00401070
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc0], 1
call fcn.00401070
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc0], bl
call fcn.00401070
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x47b394
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [0x6cee40]
cmp edi, ebx
jne 0x47b3aa
mov edi, 0x6cee44
mov eax, dword [ebp + 0x64]
lea edx, [esp + 0x78]
push 0xa
push edx
push eax
call fcn.005c62ca
mov ecx, str._sSchedulerq__s.dt
add esp, 0xc
test ecx, ecx
mov esi, eax
je 0x47b4dc
cmp edi, ebx
je 0x47b4dc
cmp esi, ebx
je 0x47b4dc
push ecx
lea ecx, [esp + 0x20]
call fcn.00401ed0
push edi
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc4], 4
call fcn.0040d680
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0xc4], 5
call fcn.0040d680
lea ecx, [esp + 0x10]
mov byte [esp + 0xc0], 6
call fcn.00401070
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
call fcn.00401f50
push eax
call fcn.005c4b4a
add esp, 4
lea ecx, [esp + 0x38]
mov edi, eax
call fcn.00401f50
push eax
call fcn.005c4b4a
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005dd58d
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x47b4aa
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x2c]
call fcn.00401f50
push eax
lea ecx, [esp + 0x3c]
call fcn.00401f50
push eax
lea ecx, [esp + 0x24]
call fcn.00401f50
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005c4ada
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005c4b4a
add esp, 0x18
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc0], 5
call fcn.00401070
lea ecx, [esp + 0x38]
mov byte [esp + 0xc0], 4
call fcn.00401070
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc0], bl
call fcn.00401070
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
cmp eax, ebx
pop ebx
jne 0x47b4ec
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp]
mov dword [esp + 0xb0], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
add esp, 0xb4
ret