Function at 0x483aaa
Capabilities:
Create thread
Delete file

Disassembly:
push 0xa0
mov eax, 0x4b9de6
call fcn.004935c5
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
and dword [ebp - 0xa4], 0
mov esi, ecx
lea edi, [esi + 0x69c]
push dword [edi]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa0], edi
call ebx
test eax, eax
je 0x483afa
push 2
pop eax
call fcn.00493648
ret 0xc
push 1
push edi
call ebx
push dword [ebp - 0xa8]
mov ecx, esi
call fcn.00483267
push 0x104
push dword [ebp - 0xac]
lea eax, [esi + 0x14]
push eax
call fcn.00497382
push 0x2d
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.00492b40
add esp, 0x18
lea eax, [esi + 0x21c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042e48d
and dword [ebp - 4], 0
mov edi, str..dt_
push edi
call fcn.00493091
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.0042edb8
lea eax, [esi + 0x21c]
push eax
lea ecx, [ebp - 0x48]
call fcn.0042e48d
mov edi, str..cfg_
push edi
mov byte [ebp - 4], 1
call fcn.00493091
pop ecx
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.0042edb8
lea edi, [esi + 0x21c]
push edi
call fcn.0047b6a8
pop ecx
test al, al
je 0x483bce
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.0042e993
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
mov dword [ebp - 0xa4], 1
jb 0x483bb4
mov eax, dword [eax]
lea ecx, [esi + 0x62c]
push ecx
push eax
call fcn.00495444
pop ecx
pop ecx
mov byte [ebp - 0x95], 1
test eax, eax
je 0x483bd5
mov byte [ebp - 0x95], 0
test byte [ebp - 0xa4], 1
je 0x483bea
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.0042e109
cmp byte [ebp - 0x95], 0
je 0x483c35
push 0
push dword [ebp - 0xa0]
call ebx
push 1
push 2
mov ecx, esi
call fcn.0048278f
push 0
push 0xb
mov ecx, esi
call fcn.0048278f
push 0xb
pop esi
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.0042e109
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0042e109
mov eax, esi
jmp 0x483af2
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x483c41
lea eax, [ebp - 0x2c]
push eax
call fcn.0047b6a8
pop ecx
test al, al
je 0x483cdb
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x483c5c
lea eax, [ebp - 0x48]
push eax
call fcn.0047b6a8
pop ecx
test al, al
je 0x483cdb
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x483c73
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x94]
push ecx
push eax
mov ecx, esi
call fcn.00483300
test eax, eax
je 0x483cdb
lea eax, [ebp - 0x94]
push eax
mov ecx, esi
call fcn.00482727
push str.Start_resume.
push str.kupdate::KHttpDownload::StartDownload
push 0x1d0
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdatewebhttpdownload.cpp
push 7
call fcn.0042f683
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
inc ecx
add esp, 0x14
inc dword [esi + 0x68c]
cmp dword [ebp - 0x18], 8
mov dword [esi + 0x678], ecx
jae 0x483ccd
lea eax, [ebp - 0x2c]
push 0
push 0x80
push 3
push 0
push ecx
jmp 0x483d1b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x483cf0
lea eax, [ebp - 0x2c]
push eax
call edi
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x483cff
lea eax, [ebp - 0x48]
push eax
call edi
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x483d0e
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 [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x483d82
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jle 0x483d45
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_CreateFile:_0x_08x.
push str.kupdate::KHttpDownload::StartDownload
push 0x1e2
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdatewebhttpdownload.cpp
push 0
call fcn.0042f683
add esp, 0x18
call edi
push eax
push 1
mov ecx, esi
call fcn.0048278f
push 0
push dword [ebp - 0xa0]
call ebx
xor esi, esi
inc esi
jmp 0x483c16
push 0x1c
call fcn.004930ac
push 0x1c
xor ebx, ebx
mov edi, eax
push ebx
push edi
call fcn.00492b40
mov eax, dword [esi + 0x10]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x688]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x684]
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x674]
mov dword [edi + 0xc], ecx
mov ecx, dword [esi + 0x670]
sub ecx, dword [esi + 0x674]
add esp, 0x10
mov dword [edi + 0x10], ecx
mov dword [edi + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4fcb00], eax
cmp dword [ebp + 0x10], ebx
je 0x483de8
push dword [esi + 4]
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x9c]
push eax
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x482e16
push ebx
push ebx
mov dword [ebp - 0x9c], ebx
call edi
mov dword [esi + 0x67c], eax
lea eax, [ebp - 0x9c]
push eax
push 4
push esi
push 0x483a5b
push ebx
push ebx
call edi
mov dword [esi + 0x680], eax
cmp dword [ebp + 0x10], ebx
je 0x483e3d
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [esi + 8]
jmp 0x483c16
push 9
jmp 0x483c15