Function at 0x421a10
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a0379
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4cba68]
xor eax, esp
mov dword [esp + 0x13c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cba68]
xor eax, esp
push eax
lea eax, [esp + 0x154]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x38], ebx
call fcn.00460a7a
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x421a6d
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0x15c], esi
call fcn.00460a7a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x421a9e
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov edi, 1
mov byte [esp + 0x15c], 1
mov dword [esp + 0x30], esi
mov dword [esp + 0x44], edi
call fcn.00460a7a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x421add
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x15c], 2
call fcn.00460a7a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x421b0f
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x15c], 3
call fcn.00460a7a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x421b41
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x48], eax
push 0x2d
push str.SoftwareESTsoftALUpdateALUpdateUpdateInfo
lea ecx, [esp + 0x50]
mov byte [esp + 0x164], 4
call fcn.00401dd0
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.LastFileNum
call fcn.00403080
mov eax, dword [esp + 0x50]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
mov byte [esp + 0x16c], 5
mov dword [esp + 0x50], eax
call fcn.004017c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
push reloc.WSOCK32.dll_accept
mov byte [esp + 0x16c], 4
call fcn.0042fcf0
mov dword [esp + 0x28], edi
lea edi, [eax + 1]
add esp, 0x10
cmp edi, 1
mov dword [esp + 0x3c], eax
jle 0x421c74
push 1
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.Alupdate
call fcn.00403080
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.004204e0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x160], 6
call fcn.00402260
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x15c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421c2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x1c]
cmp dword [ebp - 0xc], 0
je 0x421c89
push ecx
lea eax, [ebp - 0x10]
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.004017c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00432650
add esp, 4
test eax, eax
jne 0x421c89
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, edi
mov dword [esp + 0x18], eax
jl 0x421bcc
mov eax, dword [esp + 0x3c]
test eax, eax
mov dword [esp + 0x18], 0
jle 0x4220a0
jmp 0x421d59
mov eax, dword [esp + 0x40]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x15c], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421cae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
or edx, 0xffffffff
lea ecx, [ebp + 0xc]
mov byte [esp + 0x15c], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421cd3
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x15c], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421cfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x15c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421d23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x15c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421d4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x422169
mov ebx, dword [esp + 0x38]
push 0
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str.Alupdate
call fcn.00403080
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.004204e0
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov byte [esp + 0x15c], 7
je 0x421de1
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x421dd3
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x421dd3
push eax
call fcn.004017c0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x421dca
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x421de1
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401dd0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x15c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421e09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push 0x4a5956
push esi
call fcn.00481621
add esp, 8
test eax, eax
sete al
test al, al
jne 0x42209c
lea ecx, [esp + 0x28]
push ecx
call fcn.00434a60
mov edx, dword [eax]
push edx
lea eax, [esp + 0x2c]
push str._sESTSoftALUpdate
push eax
mov byte [esp + 0x16c], 8
call fcn.00402320
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x15c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421e77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x4c]
push ecx
push 0
push 0x4a9188
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [esp + 0x1c]
push 5
lea ecx, [esp + 0x50]
push ecx
push ebp
call fcn.00431b10
push 5
push ebp
push esi
call fcn.00431b10
add esp, 0x18
test eax, eax
je 0x421f73
push ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [ebp - 0x10]
mov dword [esp + 0x38], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x421eec
cmp eax, dword [esi]
jne 0x421eec
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x421f22
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x421fd6
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00480fc4
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
call fcn.00433570
add esp, 4
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x30]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.Alupdate
call fcn.00403080
mov ecx, dword [esp + 0x40]
call fcn.0041ede0
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
jl 0x421d55
jmp 0x4220a0
push 5
lea ecx, [esp + 0x50]
push ebp
push ecx
mov dword [esp + 0x50], 0
call fcn.00431b10
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x20]
add esp, 0xc
push edx
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x3c], esp
mov ebx, esp
call edx
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x421fc2
cmp eax, dword [esi]
jne 0x421fc2
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x421ff9
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x421fdb
jmp fcn.00401320
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00480fc4
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
push ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [ebp - 0x10]
mov byte [esp + 0x168], 9
mov dword [esp + 0x2c], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x422034
cmp eax, dword [esi]
jne 0x422034
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x42206b
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x42204d
jmp fcn.00401320
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00480fc4
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.Alupdate
mov byte [esp + 0x170], 0xa
call fcn.00403080
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x16c], 4
call fcn.0041eb00
jmp 0x4220a0
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
mov byte [esp + 0x15c], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4220c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov byte [esp + 0x15c], 2
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4220ea
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x15c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422112
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x15c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42213a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x15c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422165
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.004820a1
add esp, 0x14c
ret