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

Disassembly:
push 0xffffffffffffffff
push 0x492189
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4b8968]
xor eax, esp
mov dword [esp + 0x13c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b8968]
xor eax, esp
push eax
lea eax, [esp + 0x154]
mov dword fs:[0], eax
mov dword [esp + 0x3c], ecx
call fcn.0045258f
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x41f48b
push 0x80004005
call fcn.00401090
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.0045258f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x41f4bc
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov ebp, 1
mov byte [esp + 0x15c], 1
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], ebp
call fcn.0045258f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x41f4fb
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x15c], 2
call fcn.0045258f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x41f52d
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x15c], 3
call fcn.0045258f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x41f55f
push 0x80004005
call fcn.00401090
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.004020c0
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.LastFileNum
call fcn.00402f40
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 + 0x48], eax
call fcn.004019a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
push reloc.WSOCK32.dll_accept
mov byte [esp + 0x16c], 4
call fcn.0042bd70
mov dword [esp + 0x28], ebp
lea ebp, [eax + 1]
add esp, 0x10
cmp ebp, 1
mov dword [esp + 0x30], eax
jle 0x41f6a1
mov bl, 6
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.00402f40
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x30]
push eax
call fcn.0041e750
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x160], bl
call fcn.004023e0
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 0x41f650
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
cmp dword [edi - 0xc], 0
je 0x41f73a
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.004019a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0042dbd0
add esp, 4
test eax, eax
jne 0x41f73a
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, ebp
mov dword [esp + 0x18], eax
jl 0x41f5ec
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x18], 0
jle 0x41fa5d
push 0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x24]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str.Alupdate
call fcn.00402f40
mov ebp, dword [esp + 0x4c]
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
call fcn.0041e750
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
mov byte [esp + 0x15c], 7
je 0x41f817
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41f805
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41f805
push eax
call fcn.004019a0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41f72e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x41f813
mov eax, dword [esp + 0x38]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x15c], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f75f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x15c], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f783
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x41f7ab
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 0x41f7d3
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 0x41f7fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41fb21
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004020c0
mov ebx, dword [esp + 0x14]
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 0x41f83f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4978d6
push ebx
call fcn.004737be
add esp, 8
test eax, eax
sete al
test al, al
jne 0x41fa59
lea ecx, [esp + 0x28]
push ecx
call fcn.0042f830
mov edx, dword [eax]
push edx
lea eax, [esp + 0x2c]
push str._sESTSoftALUpdate
push eax
mov byte [esp + 0x16c], 8
call fcn.00402730
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 0x41f8a9
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 0x49af98
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x4c]
push eax
call esi
mov edi, dword [esp + 0x1c]
push 5
lea ecx, [esp + 0x50]
push ecx
push edi
call fcn.0042cf80
push 5
push edi
push ebx
call fcn.0042cf80
add esp, 0x18
test eax, eax
je 0x41f92c
lea edx, [esp + 0x4c]
push edx
call esi
mov eax, dword [esp + 0x34]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.Alupdate
call fcn.00402f40
mov ecx, ebp
call fcn.0041d550
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
jl 0x41f6b1
jmp 0x41fa5d
push 5
lea ecx, [esp + 0x50]
push edi
push ecx
mov dword [esp + 0x4c], 0
call fcn.0042cf80
mov edx, dword [esp + 0x40]
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 + 0x4c], esp
mov ebx, esp
call edx
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x41f97b
cmp eax, dword [esi]
jne 0x41f97b
mov ebp, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x41f9b2
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
jne 0x41f994
jmp fcn.004014b0
mov eax, dword [esi + 4]
mov dword [ebp + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.00472f68
add esp, 0x10
add ebp, 0x10
mov dword [ebx], ebp
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [edi - 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 0x41f9ed
cmp eax, dword [esi]
jne 0x41f9ed
mov ebp, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41fa24
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
jne 0x41fa06
jmp fcn.004014b0
mov eax, dword [esi + 4]
mov dword [ebp + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.00472f68
add esp, 0x10
add ebp, 0x10
mov dword [ebx], ebp
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Alupdate
mov byte [esp + 0x170], 0xa
call fcn.00402f40
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x16c], 4
call fcn.0041d270
mov ebx, dword [esp + 0x14]
jmp 0x41fa5d
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
mov byte [esp + 0x15c], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41fa82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x15c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41faa6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x15c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41faca
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 0x41faf2
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 0x41fb1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
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.00473559
add esp, 0x14c
ret