Function at 0x40ac3f
Capabilities:
Create thread
Delete file

Disassembly:
push 0x9c
mov eax, 0x41f783
call fcn.0040e3fe
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0xa8], eax
mov eax, dword [edi + 4]
xor ebx, ebx
mov dword [ebp - 0xa4], ebx
cmp eax, ebx
je 0x40ac70
call fcn.0040ac0e
mov dword [edi + 4], ebx
push 0x6a8
call fcn.0040b86d
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40acc2
mov eax, dword [edi]
push ebx
push 1
push 1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x9c], eax
call ebx
mov ecx, dword [ebp - 0x9c]
mov dword [esi + 4], eax
or dword [esi + 0x10], 0xffffffff
xor eax, eax
push eax
push eax
push 1
push eax
mov dword [esi + 0x680], eax
mov dword [esi + 0x6a4], ecx
call ebx
mov dword [esi], eax
call fcn.0040a33c
mov ebx, esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [edi + 4], ebx
lea edi, [ebx + 0x69c]
push dword [edi]
mov dword [ebp - 0xa0], edi
push edi
call esi
test eax, eax
je 0x40ace8
push 2
pop eax
jmp 0x40b00b
push 1
push edi
call esi
mov edx, dword [ebp - 0xa8]
mov edi, ebx
call fcn.0040a407
mov eax, str.Update.WPS
mov ecx, ebx
sub ecx, eax
movzx edx, word [eax]
mov word [ecx + eax + 0x14], dx
add eax, 2
test dx, dx
jne 0x40ad03
push 0x2d
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.00411bc0
add esp, 0xc
lea edi, [ebx + 0x21c]
push edi
lea esi, [ebp - 0x2c]
call fcn.00401183
and dword [ebp - 4], 0
push str..dt_
mov eax, esi
push eax
call fcn.004026b1
push edi
lea esi, [ebp - 0x48]
call fcn.00401183
push str..cfg_
mov eax, esi
push eax
mov byte [ebp - 4], 1
call fcn.004026b1
push edi
call fcn.004097b5
pop ecx
test al, al
je 0x40ada3
lea eax, [ebp - 0x64]
push eax
mov ecx, edi
call fcn.0040209e
cmp dword [eax + 0x14], 8
pop ecx
mov dword [ebp - 0xa4], 1
jb 0x40ad89
mov eax, dword [eax]
lea ecx, [ebx + 0x62c]
push ecx
push eax
call fcn.0040d880
pop ecx
pop ecx
mov byte [ebp - 0x95], 1
test eax, eax
je 0x40adaa
mov byte [ebp - 0x95], 0
test byte [ebp - 0xa4], 1
je 0x40adbf
push 1
xor edi, edi
lea esi, [ebp - 0x64]
call fcn.004013ee
cmp byte [ebp - 0x95], 0
je 0x40ae0d
push 0
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x40ade3
push 1
push 2
call eax
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x40adf0
push 0
push 0xb
call ebx
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.004013ee
push 1
lea esi, [ebp - 0x2c]
call fcn.004013ee
push 0xb
jmp 0x40ace2
mov eax, dword [ebp - 0x2c]
push 8
pop edi
cmp dword [ebp - 0x18], edi
jae 0x40ae1b
lea eax, [ebp - 0x2c]
push eax
call fcn.004097b5
pop ecx
test al, al
je 0x40aeb6
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40ae35
lea eax, [ebp - 0x48]
push eax
call fcn.004097b5
pop ecx
test al, al
je 0x40aeb6
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40ae4b
lea eax, [ebp - 0x48]
push eax
push ebx
lea ecx, [ebp - 0x94]
call fcn.0040a71e
test eax, eax
je 0x40aeb6
lea edi, [ebp - 0x94]
mov esi, ebx
call fcn.0040a49b
push str.Start_resume.
push str.kupdate::KHttpDownload::StartDownload
push 0x1c2
push 7
mov ecx, str.webhttpdownload.cpp
call fcn.00402697
mov ecx, dword [ebp - 0x2c]
xor eax, eax
inc eax
add esp, 0x10
inc dword [ebx + 0x68c]
cmp dword [ebp - 0x18], 8
mov dword [ebx + 0x678], eax
jae 0x40aea2
lea ecx, [ebp - 0x2c]
push 0
push 0x80
push 3
push 0
push eax
push 0x40000000
push ecx
jmp 0x40aeff
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebx + 0x21c]
push eax
call esi
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x40aed0
lea eax, [ebp - 0x2c]
push eax
call esi
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40aede
lea eax, [ebp - 0x48]
push eax
call esi
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x40aeec
lea eax, [ebp - 0x2c]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x10], eax
cmp eax, 0xffffffff
jne 0x40af4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x40af1f
push eax
push 1
call ebx
push 0
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.004013ee
push 1
lea esi, [ebp - 0x2c]
call fcn.004013ee
xor eax, eax
inc eax
jmp 0x40b00b
push 0x1c
call fcn.0040b86d
mov esi, eax
pop ecx
xor eax, eax
push 7
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x688]
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x684]
mov dword [esi + 8], eax
mov ecx, dword [ebx + 0x674]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebx + 0x670]
sub ecx, dword [ebx + 0x674]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebx + 4]
xor edi, edi
mov dword [0x429734], eax
mov dword [ebx + 8], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x9c]
push eax
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x4098ec
push edi
push edi
mov dword [ebp - 0x9c], edi
call esi
mov dword [ebx + 0x67c], eax
lea eax, [ebp - 0x9c]
push eax
push 4
push ebx
push 0x40a28e
push edi
push edi
call esi
push 0xffffffffffffffff
push dword [ebx + 4]
mov dword [ebx + 0x680], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [ebx + 8]
push 1
lea esi, [ebp - 0x48]
call fcn.004013ee
push 1
lea esi, [ebp - 0x2c]
call fcn.004013ee
mov eax, ebx
call fcn.0040e481
ret 4