Function at 0x404170
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58eacd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5fb1a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
push 0x5a0f6c
mov dword [ebp - 4], 0
call fcn.0040a430
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x4045eb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00403f20
test al, al
jne 0x404210
test esi, esi
jne 0x4041f2
xor ecx, ecx
jmp 0x404206
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4041f7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00409f20
push dword [ebp - 0x14]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
call ebx
mov esi, eax
mov byte [ebp - 4], 4
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 3
test ecx, ecx
je 0x4045f5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00403f20
test al, al
jne 0x404279
test esi, esi
jne 0x404258
xor ecx, ecx
jmp 0x40426f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404260
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.00409f20
mov byte [ebp - 4], 8
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 7
test ecx, ecx
je 0x4045ff
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov esi, dword [ebp - 0x10]
mov ecx, str..exe
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4042cb
test dx, dx
je 0x4042c7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4042cb
add eax, 4
add ecx, 4
test dx, dx
jne 0x4042a5
xor eax, eax
jmp 0x4042d0
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 9
test eax, eax
je 0x404318
mov ecx, str..msi
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404306
test dx, dx
je 0x404302
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404306
add eax, 4
add ecx, 4
test dx, dx
jne 0x4042e0
xor eax, eax
jmp 0x40430b
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 9
test eax, eax
je 0x404318
mov eax, dword [ebp + 8]
jmp 0x404377
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jl 0x404477
push 0x5a12c8
push eax
call fcn.00562f40
mov ecx, eax
add esp, 8
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x404345
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x404377
cmp dword [eax - 0xc], 0
jl 0x404477
push 0x5a1190
push eax
call fcn.00562f40
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x404477
mov eax, dword [ebp + 8]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x404477
lea ecx, [ebp - 0x18]
add eax, 0xfffffff0
push ecx
push ecx
mov edi, esp
push eax
mov dword [ebp - 0x20], edi
call fcn.00404000
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.00405500
mov edi, dword [ebp - 0x18]
add esp, 8
test eax, eax
jne 0x4044bd
push edi
call ebx
mov edx, eax
test edx, edx
jne 0x4043b2
xor ecx, ecx
jmp 0x4043c6
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4043b7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00409f20
mov esi, dword [ebp - 0x10]
mov ecx, str..exe
mov eax, esi
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404406
test dx, dx
je 0x404402
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404406
add eax, 4
add ecx, 4
test dx, dx
jne 0x4043e0
xor eax, eax
jmp 0x40440b
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 9
test eax, eax
je 0x404464
mov ecx, str..msi
mov eax, esi
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404446
test dx, dx
je 0x404442
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404446
add eax, 4
add ecx, 4
test dx, dx
jne 0x404420
xor eax, eax
jmp 0x40444b
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 9
test eax, eax
je 0x404464
mov ecx, dword [ebp + 0xc]
push 0xa
push str.Setup.exe
call fcn.00403980
jmp 0x4044bd
push esi
push 0x5a12cc
push dword [ebp + 0xc]
call fcn.00403a70
add esp, 0xc
jmp 0x4044bd
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push 0x5a0f6c
push eax
call fcn.00402600
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 0xc
push dword [eax - 0xc]
push eax
call fcn.00403980
mov edx, dword [ebp - 0x20]
or eax, 0xffffffff
mov byte [ebp - 4], 9
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4044bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ebx, esp
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x24], ebx
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00404000
add eax, 0x10
mov dword [ebx], eax
mov ebx, esp
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00404000
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 9
call fcn.00405070
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0x11170
jae 0x404573
cmp dword [edi - 0xc], 0
je 0x404573
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ebx, esp
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x20], ebx
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00404000
add eax, 0x10
mov dword [ebx], eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0x10
mov ebx, esp
push eax
mov dword [ebp - 0x20], ebx
call fcn.00404000
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 9
call fcn.00405070
add esp, 0xc
mov dword [ebp - 0x20], eax
or ebx, 0xffffffff
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40458d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4045a4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4045be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4045d6
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403cc0
push 0x80004005
call fcn.00403cc0
push 0x80004005
call fcn.00403cc0
int3