Function at 0x476d90
Capabilities:
Delete file

Disassembly:
mov eax, 0x6116a0
call fcn.0060bcd8
sub esp, 0x540
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x4770c8
mov ecx, edi
call fcn.00471616
test eax, eax
je 0x4770c8
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, 0x69cfd0
push 0x10
push eax
push eax
call fcn.005e187a
add esp, 0xc
test eax, eax
jne 0x476e3f
lea eax, [esi + 4]
mov dword [ebp - 0x34], eax
push ebx
push 3
pop ebx
push ebx
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], bl
cmp dword [ebp - 0x13c], eax
je 0x476e8d
push dword [ebp - 0x13c]
call fcn.005f0063
pop ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
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 0x476ec8
call fcn.004770e1
test eax, eax
jle 0x476ec8
push eax
lea eax, [ebp + 8]
push str.__semtype:_d
push eax
call fcn.0047411d
mov esi, dword [ebp + 8]
add esp, 0xc
push ebx
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 0x476f13
push dword [ebp - 0x13c]
call fcn.005f0063
pop ecx
mov eax, dword [0x6c8834]
cmp dword [eax - 0xc], 0
je 0x476f33
lea eax, [ebp - 0x10]
push eax
push 0x6c8834
lea eax, [ebp + 8]
push eax
call fcn.0047710c
mov esi, dword [ebp + 8]
push ebx
push dword [edi + 0x28]
lea eax, [ebp - 0x548]
lea ecx, [ebp - 0x54c]
mov dword [ebp - 0x54c], eax
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.004741f8
mov ebx, eax
lea eax, [ebp - 0x23c]
neg ebx
sbb bl, bl
inc bl
cmp dword [ebp - 0x240], eax
je 0x476ff8
push dword [ebp - 0x240]
call fcn.005f0063
pop ecx
lea eax, [ebp - 0x340]
cmp dword [ebp - 0x344], eax
je 0x477012
push dword [ebp - 0x344]
call fcn.005f0063
pop ecx
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x448], eax
je 0x47702c
push dword [ebp - 0x448]
call fcn.005f0063
pop ecx
lea eax, [ebp - 0x548]
mov byte [ebp - 4], 7
cmp dword [ebp - 0x54c], eax
je 0x47704a
push dword [ebp - 0x54c]
call fcn.005f0063
pop ecx
test bl, bl
pop ebx
je 0x477085
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.004741ad
jmp 0x4770cd
push 0x696e58
lea ecx, [ebp - 0x30]
call fcn.00416d87
test eax, eax
jne 0x4770a5
push dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
call fcn.00474333
mov edi, eax
jmp 0x47705d
push 0x696e60
lea ecx, [ebp - 0x30]
call fcn.00416d87
test eax, eax
jne 0x4770c1
push ecx
lea ecx, [ebp - 0x38]
call fcn.004742bf
jmp 0x4770a1
mov edi, 0x12e
jmp 0x47705d
mov edi, 0x130
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc