Function at 0x476dbf
Capabilities:
Delete file

Disassembly:
mov eax, 0x6116f0
call fcn.0060bd28
sub esp, 0x540
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x4770f7
mov ecx, edi
call fcn.00471644
test eax, eax
je 0x4770f7
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, 0x69cfe0
push 0x10
push eax
push eax
call fcn.005e18dc
add esp, 0xc
test eax, eax
jne 0x476e6e
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 0x476ebc
push dword [ebp - 0x13c]
call fcn.005f0033
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 0x476ef7
call fcn.00477110
test eax, eax
jle 0x476ef7
push eax
lea eax, [ebp + 8]
push str.__semtype:_d
push eax
call fcn.0047414b
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 0x476f42
push dword [ebp - 0x13c]
call fcn.005f0033
pop ecx
mov eax, dword [0x6c8834]
cmp dword [eax - 0xc], 0
je 0x476f62
lea eax, [ebp - 0x10]
push eax
push 0x6c8834
lea eax, [ebp + 8]
push eax
call fcn.0047713b
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.00474226
mov ebx, eax
lea eax, [ebp - 0x23c]
neg ebx
sbb bl, bl
inc bl
cmp dword [ebp - 0x240], eax
je 0x477027
push dword [ebp - 0x240]
call fcn.005f0033
pop ecx
lea eax, [ebp - 0x340]
cmp dword [ebp - 0x344], eax
je 0x477041
push dword [ebp - 0x344]
call fcn.005f0033
pop ecx
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x448], eax
je 0x47705b
push dword [ebp - 0x448]
call fcn.005f0033
pop ecx
lea eax, [ebp - 0x548]
mov byte [ebp - 4], 7
cmp dword [ebp - 0x54c], eax
je 0x477079
push dword [ebp - 0x54c]
call fcn.005f0033
pop ecx
test bl, bl
pop ebx
je 0x4770b4
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.004741db
jmp 0x4770fc
push 0x696e58
lea ecx, [ebp - 0x30]
call fcn.00416d87
test eax, eax
jne 0x4770d4
push dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
call fcn.00474361
mov edi, eax
jmp 0x47708c
push 0x696e60
lea ecx, [ebp - 0x30]
call fcn.00416d87
test eax, eax
jne 0x4770f0
push ecx
lea ecx, [ebp - 0x38]
call fcn.004742ed
jmp 0x4770d0
mov edi, 0x12e
jmp 0x47708c
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