Function at 0x10039fb0
Capabilities:
Initialize winhttp library
Prepare http request
Print debug messages
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10090f70
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, dword [0x100e28c0]
test eax, eax
jle 0x1003a04b
dec eax
mov dword [0x100e28c0], eax
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
jmp 0x1003a5b2
mov dword [0x100e28c0], 0x1c20
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
jne 0x1003a134
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1003a0ae
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1003a10a
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1003a0e9
mov byte [esi + 0xffff], 0
push esi
push str.UpgradeAvailable
push 1
mov edx, 0x109
mov ecx, str...StandAloneSvcUpgrade.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1003a101
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
lea eax, [ebx + 0x1e]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0x50
push str.data_cdn.mbamupdates.com
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x1003a1b3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1003a094
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1003a0e9
mov byte [esi + 0xffff], 0
push esi
push str.UpgradeAvailable
push 1
mov edx, 0x10d
mov ecx, str...StandAloneSvcUpgrade.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1003a101
push 0
push 0
push 0
push 0
push str._v2_mbae_consumer_version.chk
push 0x1008efc8
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
jne 0x1003a23d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1003a094
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1003a0e9
mov byte [esi + 0xffff], 0
push esi
push str.UpgradeAvailable
push 1
mov edx, 0x111
mov ecx, str...StandAloneSvcUpgrade.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1003a101
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x1003a2bc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1003a094
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1003a0e9
mov byte [esi + 0xffff], 0
push esi
push str.UpgradeAvailable
push 1
mov edx, 0x115
mov ecx, str...StandAloneSvcUpgrade.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1003a101
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1003a331
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1003a094
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1003a0e9
mov byte [esi + 0xffff], 0
push esi
push str.UpgradeAvailable
push 1
mov edx, 0x119
mov ecx, str...StandAloneSvcUpgrade.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1003a101
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1003a3a8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1003a094
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1003a0e9
mov byte [esi + 0xffff], 0
push esi
push str.UpgradeAvailable
push 1
mov edx, 0x11d
mov ecx, str...StandAloneSvcUpgrade.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1003a101
mov eax, dword [ebp - 0x1c]
add eax, 0xb
push eax
call fcn.1005218a
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x1003a47a
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1003a3f1
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1003a44e
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 5
test eax, eax
jle 0x1003a42d
mov byte [esi + 0xffff], 0
push esi
push str.UpgradeAvailable
push 1
mov edx, 0x121
mov ecx, str...StandAloneSvcUpgrade.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1003a445
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, 5
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push 0
push esi
call fcn.10055aa0
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1003a505
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x1003a094
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x1003a0e9
mov byte [esi + 0xffff], 0
push esi
push str.UpgradeAvailable
push 1
mov edx, 0x127
mov ecx, str...StandAloneSvcUpgrade.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1003a101
mov eax, esi
mov dword [ebp - 0x34], eax
mov cl, byte [eax]
test cl, cl
je 0x1003a520
cmp cl, 0xd
je 0x1003a51d
cmp cl, 0xa
je 0x1003a51d
inc eax
jmp 0x1003a507
mov byte [eax], 0
mov edx, esi
mov ecx, dword [ebp + 8]
call fcn.10039e40
test eax, eax
je 0x1003a54b
push 0x20
push 0x100e2840
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
mov dword [ebp - 4], 0
call fcn.1003a562
jmp 0x1003a5ab
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8