Function at 0x4782ae
Capabilities:
Delete file

Disassembly:
mov eax, 0x6127b6
call fcn.0060cc48
sub esp, 0x544
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x4785ff
mov ecx, edi
call fcn.00472731
test eax, eax
je 0x4785ff
mov dword [ebp - 0x38], vtable.KInstallLoader.0
call fcn.00404f47
push eax
lea ecx, [ebp - 0x30]
call fcn.004065d8
call fcn.00404f47
push eax
lea ecx, [ebp - 0x2c]
call fcn.004065d8
call fcn.00404f47
push eax
lea ecx, [ebp - 0x28]
call fcn.004065d8
call fcn.00404f47
push eax
lea ecx, [ebp - 0x24]
call fcn.004065d8
call fcn.00404f47
push eax
lea ecx, [ebp - 0x20]
call fcn.004065d8
call fcn.00404f47
push eax
lea ecx, [ebp - 0x1c]
call fcn.004065d8
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov eax, 0x69e348
push 0x10
push eax
push eax
call fcn.005e282a
add esp, 0xc
test eax, eax
jne 0x47835e
lea eax, [esi + 4]
mov dword [ebp - 0x34], eax
push 3
push dword [edi + 0x14]
lea eax, [ebp - 0x138]
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x13c], eax
call fcn.004066f6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push dword [ebp - 0x13c]
call fcn.00406173
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x13c], eax
je 0x4783aa
push dword [ebp - 0x13c]
call fcn.005f0fb3
pop ecx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.00409008
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 4
cmp dword [edi + 0x68], 0
je 0x4783e5
call fcn.00478619
test eax, eax
jle 0x4783e5
push eax
lea eax, [ebp + 8]
push str.__semtype:_d
push eax
call fcn.0047522e
mov esi, dword [ebp + 8]
add esp, 0xc
push 3
push dword [edi + 0x10]
lea eax, [ebp - 0x138]
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x13c], eax
call fcn.004066f6
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
push dword [ebp - 0x13c]
call fcn.00406173
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 7
cmp dword [ebp - 0x13c], eax
je 0x478431
push dword [ebp - 0x13c]
call fcn.005f0fb3
pop ecx
mov eax, dword [0x6ca8b4]
cmp dword [eax - 0xc], 0
je 0x478451
lea eax, [ebp - 0x10]
push eax
push 0x6ca8b4
lea eax, [ebp + 8]
push eax
call fcn.00478644
mov esi, dword [ebp + 8]
push dword [ebx]
push dword [ebp + 0xc]
push str.index:_d__cmd:_s
push 0x6ca908
call fcn.0048e9c0
add esp, 0x10
lea eax, [ebp - 0x548]
lea ecx, [ebp - 0x54c]
mov dword [ebp - 0x54c], eax
push 3
pop ebx
push ebx
push dword [edi + 0x28]
call fcn.004066f6
mov byte [ebp - 4], 8
lea eax, [ebp - 0x444]
push ebx
push dword [edi + 0x24]
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x448], eax
call fcn.004066f6
mov byte [ebp - 4], 9
lea eax, [ebp - 0x340]
push ebx
push dword [edi + 0x20]
lea ecx, [ebp - 0x344]
mov dword [ebp - 0x344], eax
call fcn.004066f6
push ebx
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 0xa
push esi
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x240], eax
call fcn.004066f6
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x38]
push dword [edi + 0x54]
push dword [ebp - 0x54c]
push dword [ebp - 0x448]
push dword [ebp - 0x344]
push dword [ebp - 0x240]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00475309
mov ebx, eax
lea eax, [ebp - 0x23c]
neg ebx
sbb bl, bl
inc bl
cmp dword [ebp - 0x240], eax
je 0x478530
push dword [ebp - 0x240]
call fcn.005f0fb3
pop ecx
lea eax, [ebp - 0x340]
cmp dword [ebp - 0x344], eax
je 0x47854a
push dword [ebp - 0x344]
call fcn.005f0fb3
pop ecx
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x448], eax
je 0x478564
push dword [ebp - 0x448]
call fcn.005f0fb3
pop ecx
lea eax, [ebp - 0x548]
mov byte [ebp - 4], 7
cmp dword [ebp - 0x54c], eax
je 0x478582
push dword [ebp - 0x54c]
call fcn.005f0fb3
pop ecx
test bl, bl
je 0x4785bc
push dword [ebp - 0x14]
mov edi, 0x12f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
lea ecx, [ebp - 0x38]
call fcn.004752be
jmp 0x478604
push 0x6981e0
lea ecx, [ebp - 0x30]
call fcn.00417f34
test eax, eax
jne 0x4785dc
push dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
call fcn.00475446
mov edi, eax
jmp 0x478594
push 0x6981e8
lea ecx, [ebp - 0x30]
call fcn.00417f34
test eax, eax
jne 0x4785f8
push ecx
lea ecx, [ebp - 0x38]
call fcn.004753d0
jmp 0x4785d8
mov edi, 0x12e
jmp 0x478594
mov edi, pe_nt_image_headers32
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc