Function at 0x403b80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5849bd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5eb1c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
push 0x595d60
mov dword [ebp - 4], 0
call fcn.00409a50
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.0042613a
mov ecx, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x403ffb
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.004038f0
test al, al
jne 0x403c20
test esi, esi
jne 0x403c02
xor ecx, ecx
jmp 0x403c16
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403c07
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00409540
push dword [ebp - 0x14]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
call ebx
mov esi, eax
mov byte [ebp - 4], 4
call fcn.0042613a
mov ecx, eax
mov byte [ebp - 4], 3
test ecx, ecx
je 0x404005
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.004038f0
test al, al
jne 0x403c89
test esi, esi
jne 0x403c68
xor ecx, ecx
jmp 0x403c7f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403c70
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.00409540
mov byte [ebp - 4], 8
call fcn.0042613a
mov ecx, eax
mov byte [ebp - 4], 7
test ecx, ecx
je 0x40400f
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 0x403cdb
test dx, dx
je 0x403cd7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403cdb
add eax, 4
add ecx, 4
test dx, dx
jne 0x403cb5
xor eax, eax
jmp 0x403ce0
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 9
test eax, eax
je 0x403d28
mov ecx, str..msi
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403d16
test dx, dx
je 0x403d12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403d16
add eax, 4
add ecx, 4
test dx, dx
jne 0x403cf0
xor eax, eax
jmp 0x403d1b
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 9
test eax, eax
je 0x403d28
mov eax, dword [ebp + 8]
jmp 0x403d87
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jl 0x403e87
push 0x5960b8
push eax
call fcn.0055d739
mov ecx, eax
add esp, 8
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x403d55
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x403d87
cmp dword [eax - 0xc], 0
jl 0x403e87
push 0x595f80
push eax
call fcn.0055d739
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x403e87
mov eax, dword [ebp + 8]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x403e87
lea ecx, [ebp - 0x18]
add eax, 0xfffffff0
push ecx
push ecx
mov edi, esp
push eax
mov dword [ebp - 0x20], edi
call fcn.004039d0
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.00404f10
mov edi, dword [ebp - 0x18]
add esp, 8
test eax, eax
jne 0x403ecd
push edi
call ebx
mov edx, eax
test edx, edx
jne 0x403dc2
xor ecx, ecx
jmp 0x403dd6
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403dc7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00409540
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 0x403e16
test dx, dx
je 0x403e12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403e16
add eax, 4
add ecx, 4
test dx, dx
jne 0x403df0
xor eax, eax
jmp 0x403e1b
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 9
test eax, eax
je 0x403e74
mov ecx, str..msi
mov eax, esi
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403e56
test dx, dx
je 0x403e52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403e56
add eax, 4
add ecx, 4
test dx, dx
jne 0x403e30
xor eax, eax
jmp 0x403e5b
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 9
test eax, eax
je 0x403e74
mov ecx, dword [ebp + 0xc]
push 0xa
push str.Setup.exe
call fcn.00403350
jmp 0x403ecd
push esi
push 0x5960bc
push dword [ebp + 0xc]
call fcn.00403440
add esp, 0xc
jmp 0x403ecd
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push 0x595d60
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.00403350
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 0x403ecd
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.004039d0
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.004039d0
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 9
call fcn.00404a80
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0x11170
jae 0x403f83
cmp dword [edi - 0xc], 0
je 0x403f83
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.004039d0
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.004039d0
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 9
call fcn.00404a80
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 0x403f9d
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 0x403fb4
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 0x403fce
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 0x403fe6
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.00403690
push 0x80004005
call fcn.00403690
push 0x80004005
call fcn.00403690
int3