Function at 0x476720
Capabilities:
Delete file

Disassembly:
mov eax, 0x61107d
call fcn.0060b6e8
sub esp, 0x540
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x476a58
mov ecx, edi
call fcn.004713b4
test eax, eax
je 0x476a58
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, 0x69bf70
push 0x10
push eax
push eax
call fcn.005e12da
add esp, 0xc
test eax, eax
jne 0x4767cf
lea eax, [esi + 4]
mov dword [ebp - 0x34], eax
push ebx
push 3
pop ebx
push ebx
push dword [edi + 0xc]
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 0x47681d
push dword [ebp - 0x13c]
call fcn.005efad3
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 + 0x60], 0
je 0x476858
call fcn.00476a71
test eax, eax
jle 0x476858
push eax
lea eax, [ebp + 8]
push str.__semtype:_d
push eax
call fcn.00473a16
mov esi, dword [ebp + 8]
add esp, 0xc
push ebx
push dword [edi + 8]
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 0x4768a3
push dword [ebp - 0x13c]
call fcn.005efad3
pop ecx
mov eax, dword [0x6c7834]
cmp dword [eax - 0xc], 0
je 0x4768c3
lea eax, [ebp - 0x10]
push eax
push 0x6c7834
lea eax, [ebp + 8]
push eax
call fcn.00476a9c
mov esi, dword [ebp + 8]
push ebx
push dword [edi + 0x20]
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 + 0x1c]
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 + 0x18]
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 + 0x4c]
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.00473af1
mov ebx, eax
lea eax, [ebp - 0x23c]
neg ebx
sbb bl, bl
inc bl
cmp dword [ebp - 0x240], eax
je 0x476988
push dword [ebp - 0x240]
call fcn.005efad3
pop ecx
lea eax, [ebp - 0x340]
cmp dword [ebp - 0x344], eax
je 0x4769a2
push dword [ebp - 0x344]
call fcn.005efad3
pop ecx
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x448], eax
je 0x4769bc
push dword [ebp - 0x448]
call fcn.005efad3
pop ecx
lea eax, [ebp - 0x548]
mov byte [ebp - 4], 7
cmp dword [ebp - 0x54c], eax
je 0x4769da
push dword [ebp - 0x54c]
call fcn.005efad3
pop ecx
test bl, bl
pop ebx
je 0x476a15
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.00473aa6
jmp 0x476a5d
push 0x695e58
lea ecx, [ebp - 0x30]
call fcn.00416d87
test eax, eax
jne 0x476a35
push dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
call fcn.00473c2c
mov edi, eax
jmp 0x4769ed
push 0x695e60
lea ecx, [ebp - 0x30]
call fcn.00416d87
test eax, eax
jne 0x476a51
push ecx
lea ecx, [ebp - 0x38]
call fcn.00473bb8
jmp 0x476a31
mov edi, 0x12e
jmp 0x4769ed
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