Function at 0x403800
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46235d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x47e700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
push 0x46688c
mov dword [ebp - 4], 0
call fcn.00409af0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x403c7b
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.00403570
test al, al
jne 0x4038a0
test esi, esi
jne 0x403882
xor ecx, ecx
jmp 0x403896
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403887
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.004095e0
push dword [ebp - 0x14]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
call ebx
mov esi, eax
mov byte [ebp - 4], 4
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 3
test ecx, ecx
je 0x403c85
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.00403570
test al, al
jne 0x403909
test esi, esi
jne 0x4038e8
xor ecx, ecx
jmp 0x4038ff
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4038f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.004095e0
mov byte [ebp - 4], 8
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 7
test ecx, ecx
je 0x403c8f
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 0x40395b
test dx, dx
je 0x403957
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40395b
add eax, 4
add ecx, 4
test dx, dx
jne 0x403935
xor eax, eax
jmp 0x403960
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 9
test eax, eax
je 0x4039a8
mov ecx, str..msi
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403996
test dx, dx
je 0x403992
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403996
add eax, 4
add ecx, 4
test dx, dx
jne 0x403970
xor eax, eax
jmp 0x40399b
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 9
test eax, eax
je 0x4039a8
mov eax, dword [ebp + 8]
jmp 0x403a07
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jl 0x403b07
push 0x466ba8
push eax
call fcn.0043c7ee
mov ecx, eax
add esp, 8
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x4039d5
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x403a07
cmp dword [eax - 0xc], 0
jl 0x403b07
push 0x466a70
push eax
call fcn.0043c7ee
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x403b07
mov eax, dword [ebp + 8]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x403b07
lea ecx, [ebp - 0x18]
add eax, 0xfffffff0
push ecx
push ecx
mov edi, esp
push eax
mov dword [ebp - 0x20], edi
call fcn.00403650
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.00404b90
mov edi, dword [ebp - 0x18]
add esp, 8
test eax, eax
jne 0x403b4d
push edi
call ebx
mov edx, eax
test edx, edx
jne 0x403a42
xor ecx, ecx
jmp 0x403a56
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403a47
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.004095e0
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 0x403a96
test dx, dx
je 0x403a92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403a96
add eax, 4
add ecx, 4
test dx, dx
jne 0x403a70
xor eax, eax
jmp 0x403a9b
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 9
test eax, eax
je 0x403af4
mov ecx, str..msi
mov eax, esi
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403ad6
test dx, dx
je 0x403ad2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403ad6
add eax, 4
add ecx, 4
test dx, dx
jne 0x403ab0
xor eax, eax
jmp 0x403adb
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 9
test eax, eax
je 0x403af4
mov ecx, dword [ebp + 0xc]
push 0xa
push str.Setup.exe
call fcn.00402fd0
jmp 0x403b4d
push esi
push 0x466bac
push dword [ebp + 0xc]
call fcn.004030c0
add esp, 0xc
jmp 0x403b4d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push 0x46688c
push eax
call fcn.00401c70
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.00402fd0
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 0x403b4d
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.00403650
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.00403650
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 9
call fcn.00404700
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0x11170
jae 0x403c03
cmp dword [edi - 0xc], 0
je 0x403c03
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.00403650
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.00403650
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 9
call fcn.00404700
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 0x403c1d
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 0x403c34
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 0x403c4e
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 0x403c66
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.00403310
push 0x80004005
call fcn.00403310
push 0x80004005
call fcn.00403310
int3