Function at 0x406477
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f588
mov eax, dword fs:[0]
push eax
mov eax, 0x4268
call fcn.00453c80
mov eax, dword [0x489c20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.00450bc0
mov eax, dword [0x48c260]
add esp, 0xc
mov ecx, 0x48c260
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4248], eax
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0x2dc]
lea ecx, [ebp - 0x218]
sub ecx, eax
movzx edx, word [eax]
mov word [ecx + eax], dx
inc eax
inc eax
cmp dx, di
jne 0x4064f3
push dword [ebp + 0xc]
lea eax, [ebp - 0x4234]
push eax
lea eax, [ebx + 0x3bc]
call fcn.00403eb6
mov byte [ebp - 4], 2
cmp dword [ebp - 0x4220], edi
jne 0x40656a
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x4234]
call fcn.00401fd6
mov eax, dword [ebp - 0x4248]
add eax, 0xfffffff0
call fcn.00401464
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401464
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044eff8
leave
ret 8
cmp dword [ebp - 0x421c], 8
mov eax, dword [ebp - 0x4230]
jae 0x40657f
lea eax, [ebp - 0x4230]
mov esi, eax
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x406581
sub eax, esi
lea edi, [ebp - 0x218]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x406595
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x3ffe
rep movsb byte es:[edi], byte [esi]
push eax
mov word [ebp - 0x4218], ax
lea eax, [ebp - 0x4216]
push eax
call fcn.00450bc0
add esp, 0xc
lea edi, [ebx + 0x2c4]
lea eax, [ebp - 0x4258]
push edi
lea ecx, [ebx + 0x2b0]
push eax
call fcn.004038c1
mov esi, 0x47cf18
lea ecx, [ebp - 0x4244]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00403912
lea ecx, [ebx + 0x2b4]
push ecx
lea ecx, [ebp - 0x4250]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004038c1
lea ecx, [ebp - 0x4238]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00403912
add esp, 0x20
mov eax, dword [ebp - 0x4250]
add eax, 0xfffffff0
call fcn.00401464
mov eax, dword [ebp - 0x4244]
add eax, 0xfffffff0
call fcn.00401464
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x4258]
add eax, 0xfffffff0
call fcn.00401464
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebx + 0x2c0]
je 0x40671a
lea eax, [ebp - 0x423c]
push edi
push eax
lea ecx, [ebx + 0x2b0]
call fcn.004038c1
lea ecx, [ebp - 0x424c]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00403912
add esp, 0x10
lea edx, [ebx + 0x2f4]
mov byte [ebp - 4], 0xb
cmp dword [edx + 0x18], 8
jb 0x4066a7
mov edx, dword [edx + 4]
jmp 0x4066aa
add edx, 4
push edx
lea ecx, [ebp - 0x4240]
push ecx
mov ecx, eax
call fcn.00403912
lea ecx, [ebp - 0x4254]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.00403912
add esp, 0x10
lea edi, [ebp - 0x4238]
mov byte [ebp - 4], 0xd
call fcn.004019fc
mov eax, dword [ebp - 0x4254]
add eax, 0xfffffff0
call fcn.00401464
mov eax, dword [ebp - 0x4240]
add eax, 0xfffffff0
call fcn.00401464
mov eax, dword [ebp - 0x424c]
add eax, 0xfffffff0
call fcn.00401464
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x423c]
add eax, 0xfffffff0
call fcn.00401464
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebx + 0x2c0]
jne 0x4067db
cmp dword [ebx + 0x2f0], 0
jle 0x4067db
cmp dword [ebx + 0x308], 0
je 0x4067db
lea eax, [ebx + 0x2f4]
cmp dword [eax + 0x18], 8
jb 0x406754
mov eax, dword [eax + 4]
jmp 0x406757
add eax, 4
push ecx
mov ecx, esp
mov dword [ebp - 0x423c], esp
push eax
push ecx
call fcn.004019b7
lea edi, [ebp - 0x4274]
call fcn.004089ab
pop ecx
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x18], 8
jb 0x406782
mov eax, dword [eax + 4]
jmp 0x406785
add eax, 4
push eax
lea eax, [ebp - 0x4238]
push eax
call fcn.00401a3d
push 0
push 1
lea ecx, [ebp - 0x4274]
mov byte [ebp - 4], 9
call fcn.00401fd6
lea eax, [ebp - 0x423c]
push esi
push eax
lea ecx, [ebp - 0x4238]
call fcn.00403912
pop ecx
pop ecx
lea edi, [ebp - 0x4238]
mov byte [ebp - 4], 0xf
call fcn.004019fc
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x423c]
add eax, 0xfffffff0
call fcn.00401464
xor eax, eax
movzx ecx, word [eax + str._VERYSILENT]
mov word [ebp + eax - 0x4218], cx
inc eax
inc eax
test cx, cx
jne 0x4067dd
push 0xfffffffffffffffe
lea edi, [ebp - 0x4218]
pop edx
add edi, edx
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x4067fe
mov eax, dword [ebp + 8]
mov esi, str.__LANG
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x406817
lea edi, [ebp - 0x4218]
sub eax, esi
add edi, edx
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x40682b
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x4218]
add edi, edx
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x40684c
mov esi, str.__NOPAGE
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x4218]
add edi, edx
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x40686a
mov eax, dword [ebp - 0x4238]
push 8
pop ecx
mov esi, str.__installpath:__
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x406889
lea edi, [ebp - 0x4218]
sub eax, esi
add edi, edx
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x40689d
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x4218]
add edi, edx
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x4068be
mov esi, 0x47cf88
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x4218]
add edi, edx
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x4068d7
mov eax, dword [ebp - 0x4238]
mov esi, 0x47cf8c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4068f3
lea edi, [ebp - 0x4218]
sub eax, esi
add edi, edx
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x406907
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x4218]
add edi, edx
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x406928
lea eax, [ebp - 0x4218]
push eax
mov esi, 0x47cf88
lea eax, [ebp - 0x218]
movsd dword es:[edi], dword [esi]
call fcn.004010fa
mov esi, eax
pop ecx
test esi, esi
je 0x406961
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4069b1
push dword [ebx + 0x2e0]
push dword [ebp + 0xc]
call fcn.0040826c
mov eax, dword [ebx + 0x2c0]
pop ecx
pop ecx
cmp eax, dword [ebp + 0xc]
jne 0x4069b1
cmp dword [ebx + 0x2f0], 0
jle 0x4069b1
push eax
lea eax, [ebx + 0x2f4]
cmp dword [eax + 0x18], 8
jb 0x406997
mov eax, dword [eax + 4]
jmp 0x40699a
add eax, 4
push ecx
mov ecx, esp
mov dword [ebp - 0x423c], esp
push eax
push ecx
call fcn.004019b7
call fcn.004082fc
pop ecx
pop ecx
mov eax, dword [ebp - 0x4238]
add eax, 0xfffffff0
call fcn.00401464
jmp 0x406525