Function at 0x404160
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a18d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5f31c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
push 0x59bf6c
mov dword [ebp - 4], 0
call fcn.0040a440
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.0042b4c7
mov ecx, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x4045db
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.00403ed0
test al, al
jne 0x404200
test esi, esi
jne 0x4041e2
xor ecx, ecx
jmp 0x4041f6
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4041e7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00409f30
push dword [ebp - 0x14]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
call ebx
mov esi, eax
mov byte [ebp - 4], 4
call fcn.0042b4c7
mov ecx, eax
mov byte [ebp - 4], 3
test ecx, ecx
je 0x4045e5
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.00403ed0
test al, al
jne 0x404269
test esi, esi
jne 0x404248
xor ecx, ecx
jmp 0x40425f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404250
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.00409f30
mov byte [ebp - 4], 8
call fcn.0042b4c7
mov ecx, eax
mov byte [ebp - 4], 7
test ecx, ecx
je 0x4045ef
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 0x4042bb
test dx, dx
je 0x4042b7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4042bb
add eax, 4
add ecx, 4
test dx, dx
jne 0x404295
xor eax, eax
jmp 0x4042c0
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 9
test eax, eax
je 0x404308
mov ecx, str..msi
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4042f6
test dx, dx
je 0x4042f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4042f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4042d0
xor eax, eax
jmp 0x4042fb
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 9
test eax, eax
je 0x404308
mov eax, dword [ebp + 8]
jmp 0x404367
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jl 0x404467
push 0x59c2c8
push eax
call fcn.00562a29
mov ecx, eax
add esp, 8
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x404335
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x404367
cmp dword [eax - 0xc], 0
jl 0x404467
push 0x59c190
push eax
call fcn.00562a29
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x404467
mov eax, dword [ebp + 8]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x404467
lea ecx, [ebp - 0x18]
add eax, 0xfffffff0
push ecx
push ecx
mov edi, esp
push eax
mov dword [ebp - 0x20], edi
call fcn.00403fb0
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.004054f0
mov edi, dword [ebp - 0x18]
add esp, 8
test eax, eax
jne 0x4044ad
push edi
call ebx
mov edx, eax
test edx, edx
jne 0x4043a2
xor ecx, ecx
jmp 0x4043b6
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4043a7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00409f30
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 0x4043f6
test dx, dx
je 0x4043f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4043f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4043d0
xor eax, eax
jmp 0x4043fb
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 9
test eax, eax
je 0x404454
mov ecx, str..msi
mov eax, esi
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404436
test dx, dx
je 0x404432
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404436
add eax, 4
add ecx, 4
test dx, dx
jne 0x404410
xor eax, eax
jmp 0x40443b
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 9
test eax, eax
je 0x404454
mov ecx, dword [ebp + 0xc]
push 0xa
push str.Setup.exe
call fcn.00403930
jmp 0x4044ad
push esi
push 0x59c2cc
push dword [ebp + 0xc]
call fcn.00403a20
add esp, 0xc
jmp 0x4044ad
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push 0x59bf6c
push eax
call fcn.004025d0
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.00403930
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 0x4044ad
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.00403fb0
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.00403fb0
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 9
call fcn.00405060
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0x11170
jae 0x404563
cmp dword [edi - 0xc], 0
je 0x404563
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.00403fb0
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.00403fb0
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 9
call fcn.00405060
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 0x40457d
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 0x404594
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 0x4045ae
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 0x4045c6
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.00403c70
push 0x80004005
call fcn.00403c70
push 0x80004005
call fcn.00403c70
int3