Function at 0x403c40
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535160
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x586e90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ebx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.00401040
mov esi, 8
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], esi
jb 0x403c8a
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x44]
call fcn.00408db0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x18], esi
jb 0x403ca8
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040f643
add esp, 4
xor ecx, ecx
lea edx, [ebp - 0x44]
mov word [ebp - 0x2c], cx
xor edi, edi
push edx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
call fcn.00408950
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x3c]
push 0x5c
push esi
call fcn.00510753
add esp, 8
cmp eax, edi
jne 0x403ce1
or eax, 0xffffffff
jmp 0x403ce5
sub eax, esi
sar eax, 1
push eax
push edi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00408710
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.004087c0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edi
sar ecx, 2
test ecx, ecx
je 0x40408b
call fcn.0040f6aa
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x404164
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 7
call fcn.0040f6aa
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x404164
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 8
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x30]
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp ecx, esi
jbe 0x40416e
mov ecx, dword [eax + esi*4]
cmp dword [ecx - 0xc], 0
lea edi, [eax + esi*4]
jge 0x403dae
or edi, 0xffffffff
jmp 0x403dd1
push 0x5642a0
push ecx
call fcn.005106f3
mov edx, dword [ebp + 0x10]
add esp, 8
test eax, eax
jne 0x403dc8
or edi, 0xffffffff
jmp 0x403dce
sub eax, dword [edi]
sar eax, 1
mov edi, eax
mov eax, dword [ebp + 0xc]
sub edx, eax
sar edx, 2
cmp edx, esi
jbe 0x40416e
mov edx, dword [ebp - 0x30]
push edi
lea ecx, [eax + edx*4]
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.00408710
push eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 9
call fcn.00407c50
add esp, 0xc
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x403e61
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x403e51
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x403e51
push eax
call fcn.004088e0
mov dword [ebp - 0x40], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x403e46
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ebx, dword [ebp - 0x40]
add ebx, 0x10
mov dword [ebp - 0x38], ebx
jmp 0x403e61
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.00403730
mov ebx, dword [ebp - 0x38]
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403ea7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
sub ecx, eax
sar ecx, 2
cmp ecx, dword [ebp - 0x30]
jbe 0x40416e
mov edx, dword [ebp - 0x30]
lea ecx, [eax + edx*4]
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
push eax
inc edi
push edi
lea edx, [ebp - 0x4c]
push edx
call fcn.00408710
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov byte [ebp - 4], 0xb
call fcn.00407c50
add esp, 0xc
mov byte [ebp - 4], 0xc
mov ecx, dword [eax]
mov esi, dword [ebp - 0x34]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x403f43
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x403f36
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x403f36
push eax
call fcn.004088e0
mov dword [ebp - 0x40], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x403f2b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov esi, dword [ebp - 0x40]
add esi, 0x10
mov dword [ebp - 0x34], esi
jmp 0x403f46
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.00403730
mov esi, dword [ebp - 0x34]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebx - 0xc], 0
jl 0x403fd2
push 0x5642a4
push ebx
call fcn.005106f3
add esp, 8
test eax, eax
je 0x403fb1
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
jne 0x404033
cmp dword [ebx - 0xc], 0
jl 0x403fd2
push str.FoxitReaderPluginUpdate.exe
push ebx
call fcn.005106f3
add esp, 8
test eax, eax
je 0x403fd2
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
jne 0x404033
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404000
cmp dword [esi - 4], 1
jle 0x403ff2
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00403580
mov esi, dword [ebp - 0x34]
push esi
push str.UpdateFile:Delete___s__Fail
call fcn.00408e80
add esp, 8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x404178
cmp dword [ebx - 4], 1
jle 0x404025
mov edx, dword [ebx - 0xc]
push edx
lea ecx, [ebp - 0x38]
call fcn.00403580
mov ebx, dword [ebp - 0x38]
push ebx
push str.UpdateFile:Update___s__Success
call fcn.00408e80
add esp, 8
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 7
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404053
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
or edx, 0xffffffff
lea ecx, [ebx + 0xc]
mov byte [ebp - 4], 5
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404073
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
inc eax
sar ecx, 2
mov dword [ebp - 0x30], eax
cmp eax, ecx
jb 0x403d37
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x404141
mov eax, dword [ebp + 0x10]
mov edi, eax
cmp esi, eax
je 0x404138
jmp 0x404110
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40412e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x404110
mov esi, dword [ebp + 0xc]
push esi
call fcn.0040f643
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ec37
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.004038b0
push str.invalid_vector_T__subscript
call fcn.0050e7d4
cmp dword [ebx - 4], 1
jle 0x40418d
mov edx, dword [ebx - 0xc]
push edx
lea ecx, [ebp - 0x38]
call fcn.00403580
mov ebx, dword [ebp - 0x38]
push ebx
push str.UpdateFile:Update___s__Fail
call fcn.00408e80
lea eax, [esi - 0x10]
add esp, 8
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041db
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404221
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404244
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [ebp + 0xc]
call fcn.00407ef0
xor eax, eax
jmp 0x404146