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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10136850
mov eax, dword fs:[0]
push eax
sub esp, 0xb48
mov eax, dword [0x1017455c]
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.10116880
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.10116880
add esp, 0xc
push 0x3fe
lea edx, [ebp - 0x722]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x724], cx
call fcn.10116880
add esp, 0xc
push 0x1019b0b4
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, eax
lea esi, [ebx + 1]
cmp dword [0x1018fe6c], ebx
jne 0x1000378c
lea eax, [ebp - 0xb3c]
push eax
push str.AsyncDebug
mov ecx, str.SoftwareMicroWorld
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xb3c], ebx
mov dword [0x1018fe6c], esi
call fcn.10031670
mov eax, dword [ebp - 0xb3c]
cmp eax, esi
je 0x10003786
cmp eax, 2
jne 0x1000378c
mov dword [0x1018f84c], esi
mov dword [0x1018fe68], esi
push edi
push str.WinHTTP_Initialize_:_TC_u
lea edx, [ebp - 0x724]
call fcn.10002e50
add esp, 8
cmp dword [0x1018fe68], ebx
je 0x100037c0
lea ecx, [ebp - 0x724]
push ecx
push 0x10146158
push ebx
call fcn.10053700
add esp, 0xc
lea ecx, [ecx]
cmp edi, esi
jle 0x100037dd
cmp dword [0x1019b0b0], ebx
jne 0x100037dd
mov esi, 0x14
call fcn.100326d0
mov esi, 1
jmp 0x100037c0
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 0xb28]
mov dword [edi + 0x880], edx
call fcn.1006ea70
cmp dword [0x1019b0b0], ebx
jne 0x1000386a
push str.WinHTTP_CheckAndWaitForInternetConnectivity_
lea edx, [ebp - 0x724]
mov dword [ebp - 0xb54], 0x1019b0ac
mov dword [ebp - 0xb50], 0x1019aea0
mov dword [ebp - 0xb4c], 0x1019afa8
mov dword [ebp - 0xb48], ebx
mov dword [ebp - 0xb44], esi
call fcn.10002e50
add esp, 4
cmp dword [0x1018fe68], ebx
je 0x10003853
lea eax, [ebp - 0x724]
push eax
push 0x10146158
push ebx
call fcn.10053700
add esp, 0xc
lea ecx, [ebp - 0xb54]
call fcn.1000fc10
mov dword [0x1019b0b0], esi
mov dword [0x1018fe80], esi
mov ecx, dword [0x1019b0ac]
mov dword [0x1018fe84], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x460], eax
cmp dword [edi + 0x45c], ebx
je 0x100038c6
push str.WinHTTP_DownloadFromLocalNetworkServer___apasetup_
lea edx, [ebp - 0x724]
call fcn.10002e50
add esp, 4
cmp dword [0x1018fe68], ebx
je 0x100038ba
lea edx, [ebp - 0x724]
push edx
push 0x10146158
push ebx
call fcn.10053700
add esp, 0xc
cmp dword [edi + 0x45c], ebx
jne 0x10003a12
cmp byte [0x1019aea0], bl
je 0x10003a12
cmp byte [0x1019afa8], bl
je 0x10003a12
xor eax, eax
push 0x1019afa8
push 0x1019aea0
mov dword [ebp - 0xb30], eax
mov dword [ebp - 0xb2c], eax
lea eax, [ebp - 0xb24]
push str.httphttp:___s:_s
push eax
mov dword [ebp - 0xb34], ebx
call fcn.1010d6a8
push 0x802
call fcn.1004e860
add esp, 0x14
mov dword [ebp - 0xb30], eax
cmp eax, ebx
je 0x10003a12
push 0x400
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0xb24]
push ecx
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.10002e50
add esp, 4
cmp dword [0x1018fe68], ebx
je 0x1000397f
lea edx, [ebp - 0x724]
push edx
push 0x10146158
push ebx
call fcn.10053700
add esp, 0xc
lea eax, [ebp - 0xb34]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetDefaultProxyConfiguration]
test eax, eax
je 0x100039dd
mov dword [ebp - 0xb38], esi
cmp dword [0x1019b0b8], ebx
jne 0x100039c4
call fcn.100678a0
cmp eax, ebx
je 0x100039be
push 0x1019afa8
push 0x1019aea0
push str._Proxy_Configuration_Set:__s:_s_n
call fcn.1010e391
add esp, 0xc
mov dword [0x1019b0b8], esi
cmp dword [0x1018fe68], ebx
je 0x100039fd
push 0x1019afa8
push 0x1019aea0
push str._Proxy_Configuration_Set:__s:_s
jmp 0x100039f4
cmp dword [0x1018fe68], ebx
je 0x100039fd
push 0x1019afa8
push 0x1019aea0
push str._WinHttpSetDefaultProxyConfiguration_FAILED_to_set_to__s:_s
push ebx
call fcn.10053700
add esp, 0x10
mov ecx, dword [ebp - 0xb30]
push ecx
call fcn.1004e940
add esp, 4
mov dword [ebp - 0xb30], ebx
mov edx, dword [ebp + 0x10]
cmp dword [ebp - 0xb38], ebx
je 0x10003ab5
cmp edx, ebx
je 0x10003a53
cmp byte [edx], bl
je 0x10003a53
xor eax, eax
mov word [ebp - 0x21c], ax
lea ecx, [ebp - 0x21c]
mov al, byte [edx]
cmp al, bl
je 0x10003a4c
movzx ax, al
mov word [ecx], ax
add ecx, 2
add edx, esi
jmp 0x10003a38
xor edx, edx
mov word [ecx], dx
jmp 0x10003a71
mov ecx, 0x1018adf8
lea edx, [ebp - 0x21c]
mov edi, edi
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x10003a60
lea eax, [ebp - 0x21c]
push eax
push str.WinHTTPOpen_via_Proxy___UA___s_
lea edx, [ebp - 0x724]
call fcn.10002e50
add esp, 8
cmp dword [0x1018fe68], ebx
je 0x10003aa8
lea ecx, [ebp - 0x724]
push ecx
push 0x10146158
push ebx
call fcn.10053700
add esp, 0xc
push sym.EncDec.dll_Ordinal_183
push ebx
push ebx
push ebx
jmp 0x10003b46
cmp edx, ebx
je 0x10003aeb
cmp byte [edx], bl
je 0x10003aeb
xor eax, eax
mov word [ebp - 0x21c], ax
lea ecx, [ebp - 0x21c]
lea esp, [esp]
mov al, byte [edx]
cmp al, bl
je 0x10003ae4
movzx ax, al
mov word [ecx], ax
add ecx, 2
add edx, esi
jmp 0x10003ad0
xor edx, edx
mov word [ecx], dx
jmp 0x10003b07
mov ecx, 0x1018adf8
lea edx, [ebp - 0x21c]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x10003af6
lea eax, [ebp - 0x21c]
push eax
push str.WinHTTPOpen_Direct___UA___s_
lea edx, [ebp - 0x724]
call fcn.10002e50
add esp, 8
cmp dword [0x1018fe68], ebx
je 0x10003b3e
lea ecx, [ebp - 0x724]
push ecx
push 0x10146158
push ebx
call fcn.10053700
add esp, 0xc
push sym.EncDec.dll_Ordinal_183
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.10116880
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 0x101463d4
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 4], 0xffffffff
jmp 0x10003bcd
lea esi, [edi + 0x480]
push str.WinHTTP_Returning_Session_
mov edx, esi
call fcn.10002e50
add esp, 4
cmp dword [0x1018fe68], ebx
je 0x10003bf9
push esi
push 0x10146158
push ebx
call fcn.10053700
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.1010d699
mov esp, ebp
pop ebp
ret 0xc