Function at 0x8543f0
Capabilities:
Get common file path
Initialize winhttp library
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa9b6e0
mov eax, dword fs:[0]
push eax
sub esp, 0xb48
mov eax, dword [0xb196ec]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x3ff
lea ecx, [ebp - 0xb23]
push ebx
mov dword [ebp - 4], ebx
push ecx
mov dword [ebp - 0xb28], eax
mov byte [ebp - 0xb24], bl
call fcn.00a7ffb0
xor eax, eax
add esp, 0xc
push 0x1fe
mov dword [ebp - 0xb50], eax
mov dword [ebp - 0xb4c], eax
mov dword [ebp - 0xb48], eax
mov dword [ebp - 0xb44], eax
mov dword [ebp - 0xb40], eax
lea eax, [ebp - 0x21a]
xor edx, edx
push ebx
push eax
mov dword [ebp - 0xb38], ebx
mov dword [ebp - 0xb54], ebx
mov word [ebp - 0x21c], dx
call fcn.00a7ffb0
add esp, 0xc
push 0x3fe
lea edx, [ebp - 0x722]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x724], cx
call fcn.00a7ffb0
add esp, 0xc
push 0xbe5014
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, eax
lea esi, [ebx + 1]
cmp dword [0xb53f50], ebx
jne 0x85450c
lea eax, [ebp - 0xb3c]
push eax
push str.AsyncDebug
mov ecx, str.SoftwareMicroWorld
mov edx, 0x80000002
mov dword [ebp - 0xb3c], ebx
mov dword [0xb53f50], esi
call fcn.0094c0d0
mov eax, dword [ebp - 0xb3c]
cmp eax, esi
je 0x854506
cmp eax, 2
jne 0x85450c
mov dword [0xb53f48], esi
mov dword [0xb53f4c], esi
push edi
push str.WinHTTP_Initialize_:_TC_u
lea edx, [ebp - 0x724]
call fcn.00853e40
add esp, 8
cmp dword [0xb53f4c], ebx
je 0x854540
lea ecx, [ebp - 0x724]
push ecx
push 0xaa8700
push ebx
call fcn.0096a780
add esp, 0xc
lea ecx, [ecx]
cmp edi, esi
jle 0x85455d
cmp dword [0xbe5010], ebx
jne 0x85455d
mov esi, 0x14
call fcn.0094d160
mov esi, 1
jmp 0x854540
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 0xb28]
mov dword [edi + 0x87c], edx
call fcn.0098dbb0
cmp dword [0xbe5010], ebx
jne 0x8545ee
push str.WinHTTP_CheckAndWaitForInternetConnectivity_
lea edx, [ebp - 0x724]
mov dword [ebp - 0xb54], 0xbe500c
mov dword [ebp - 0xb50], 0xbe4e00
mov dword [ebp - 0xb4c], 0xbe4f08
mov dword [ebp - 0xb48], ebx
mov dword [ebp - 0xb44], esi
call fcn.00853e40
add esp, 4
cmp dword [0xb53f4c], ebx
je 0x8545d3
lea eax, [ebp - 0x724]
push eax
push 0xaa8700
push ebx
call fcn.0096a780
add esp, 0xc
lea ecx, [ebp - 0xb54]
push ecx
call fcn.0087e200
add esp, 4
mov dword [0xbe5010], esi
mov dword [0xb53f64], esi
mov edx, dword [0xbe500c]
mov dword [0xb53f68], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x460], eax
cmp dword [edi + 0x45c], ebx
je 0x85464a
push str.WinHTTP_DownloadFromLocalNetworkServer___apasetup_
lea edx, [ebp - 0x724]
call fcn.00853e40
add esp, 4
cmp dword [0xb53f4c], ebx
je 0x85463e
lea eax, [ebp - 0x724]
push eax
push 0xaa8700
push ebx
call fcn.0096a780
add esp, 0xc
cmp dword [edi + 0x45c], ebx
jne 0x854797
cmp byte [0xbe4e00], bl
je 0x854797
cmp byte [0xbe4f08], bl
je 0x854797
push 0xbe4f08
push 0xbe4e00
xor eax, eax
lea ecx, [ebp - 0xb24]
push str.httphttp:___s:_s
push ecx
mov dword [ebp - 0xb34], ebx
mov dword [ebp - 0xb30], eax
mov dword [ebp - 0xb2c], eax
call fcn.00a78f30
push esi
push 0x812
call fcn.00a7b9f8
add esp, 0x18
mov dword [ebp - 0xb30], eax
cmp eax, ebx
je 0x854797
push 0x400
push eax
push 0xffffffffffffffff
lea edx, [ebp - 0xb24]
push edx
push ebx
push ebx
mov dword [ebp - 0xb2c], ebx
mov dword [ebp - 0xb34], 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push str.WinHTTP_SettingProxyConfig_
lea edx, [ebp - 0x724]
call fcn.00853e40
add esp, 4
cmp dword [0xb53f4c], ebx
je 0x854704
lea eax, [ebp - 0x724]
push eax
push 0xaa8700
push ebx
call fcn.0096a780
add esp, 0xc
lea ecx, [ebp - 0xb34]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetDefaultProxyConfiguration]
test eax, eax
je 0x854762
mov dword [ebp - 0xb38], esi
cmp dword [0xbe5018], ebx
jne 0x854749
call fcn.00986120
cmp eax, ebx
je 0x854743
push 0xbe4f08
push 0xbe4e00
push str._Proxy_Configuration_Set:__s:_s_n
call fcn.00a7a8b1
add esp, 0xc
mov dword [0xbe5018], esi
cmp dword [0xb53f4c], ebx
je 0x854782
push 0xbe4f08
push 0xbe4e00
push str._Proxy_Configuration_Set:__s:_s
jmp 0x854779
cmp dword [0xb53f4c], ebx
je 0x854782
push 0xbe4f08
push 0xbe4e00
push str._WinHttpSetDefaultProxyConfiguration_FAILED_to_set_to__s:_s
push ebx
call fcn.0096a780
add esp, 0x10
mov edx, dword [ebp - 0xb30]
push edx
call fcn.00966e50
add esp, 4
mov dword [ebp - 0xb30], ebx
mov edx, dword [ebp + 0x10]
cmp dword [ebp - 0xb38], ebx
je 0x85483b
cmp edx, ebx
je 0x8547db
cmp byte [edx], bl
je 0x8547db
xor eax, eax
mov word [ebp - 0x21c], ax
lea ecx, [ebp - 0x21c]
lea ecx, [ecx]
mov al, byte [edx]
cmp al, bl
je 0x8547d4
movzx ax, al
mov word [ecx], ax
add ecx, 2
add edx, esi
jmp 0x8547c0
xor edx, edx
mov word [ecx], dx
jmp 0x8547f7
mov ecx, 0xb46638
lea edx, [ebp - 0x21c]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x8547e6
lea eax, [ebp - 0x21c]
push eax
push str.WinHTTPOpen_via_Proxy___UA___s_
lea edx, [ebp - 0x724]
call fcn.00853e40
add esp, 8
cmp dword [0xb53f4c], ebx
je 0x85482e
lea ecx, [ebp - 0x724]
push ecx
push 0xaa8700
push ebx
call fcn.0096a780
add esp, 0xc
push 0x10000000
push ebx
push ebx
push ebx
jmp 0x8548d0
cmp edx, ebx
je 0x85486d
cmp byte [edx], bl
je 0x85486d
xor eax, eax
mov word [ebp - 0x21c], ax
lea ecx, [ebp - 0x21c]
mov al, byte [edx]
cmp al, bl
je 0x854866
movzx ax, al
mov word [ecx], ax
add ecx, 2
add edx, esi
jmp 0x854852
xor edx, edx
mov word [ecx], dx
jmp 0x854891
mov ecx, 0xb46638
lea edx, [ebp - 0x21c]
jmp 0x854880
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x854880
lea eax, [ebp - 0x21c]
push eax
push str.WinHTTPOpen_Direct___UA___s_
lea edx, [ebp - 0x724]
call fcn.00853e40
add esp, 8
cmp dword [0xb53f4c], ebx
je 0x8548c8
lea ecx, [ebp - 0x724]
push ecx
push 0xaa8700
push ebx
call fcn.0096a780
add esp, 0xc
push 0x10000000
push ebx
push ebx
push esi
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push 0x103
mov dword [edi + 0x464], eax
lea eax, [ebp - 0x323]
push ebx
push eax
mov byte [ebp - 0x324], bl
call fcn.00a7ffb0
add esp, 0xc
lea ecx, [ebp - 0x324]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [edi + 0x350]
push edx
push ebx
push 0xaa896c
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 4], 0xffffffff
jmp 0x854957
lea esi, [edi + 0x47c]
push str.WinHTTP_Returning_Session_
mov edx, esi
call fcn.00853e40
add esp, 4
cmp dword [0xb53f4c], ebx
je 0x854983
push esi
push 0xaa8700
push ebx
call fcn.0096a780
add esp, 0xc
mov ecx, dword [ebp - 0xb28]
xor eax, eax
cmp dword [ecx + 0x464], ebx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret 0xc