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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10147f90
mov eax, dword fs:[0]
push eax
sub esp, 0xb48
mov eax, dword [0x10189710]
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.1012e060
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.1012e060
add esp, 0xc
push 0x3fe
lea edx, [ebp - 0x722]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x724], cx
call fcn.1012e060
add esp, 0xc
push 0x101c2e84
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, eax
lea esi, [ebx + 1]
cmp dword [0x101a897c], ebx
jne 0x1000311c
lea eax, [ebp - 0xb3c]
push eax
push str.AsyncDebug
mov ecx, str.SoftwareMicroWorld
mov edx, reloc.WS2_32.dll_bind
mov dword [ebp - 0xb3c], ebx
mov dword [0x101a897c], esi
call fcn.10059e30
mov eax, dword [ebp - 0xb3c]
cmp eax, esi
je 0x10003116
cmp eax, 2
jne 0x1000311c
mov dword [0x101a8974], esi
mov dword [0x101a8978], esi
push edi
push str.WinHTTP_Initialize_:_TC_u
lea edx, [ebp - 0x724]
call fcn.100027f0
add esp, 8
cmp dword [0x101a8978], ebx
je 0x10003150
lea ecx, [ebp - 0x724]
push ecx
push 0x10153fb0
push ebx
call fcn.1006ed90
add esp, 0xc
lea ecx, [ecx]
cmp edi, esi
jle 0x1000316d
cmp dword [0x101c2e80], ebx
jne 0x1000316d
mov esi, 0x14
call fcn.1005a8b0
mov esi, 1
jmp 0x10003150
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 0xb28]
mov dword [edi + 0x880], edx
call fcn.10089550
cmp dword [0x101c2e80], ebx
jne 0x100031fe
push str.WinHTTP_CheckAndWaitForInternetConnectivity_
lea edx, [ebp - 0x724]
mov dword [ebp - 0xb54], 0x101c2e7c
mov dword [ebp - 0xb50], 0x101c2c70
mov dword [ebp - 0xb4c], 0x101c2d78
mov dword [ebp - 0xb48], ebx
mov dword [ebp - 0xb44], esi
call fcn.100027f0
add esp, 4
cmp dword [0x101a8978], ebx
je 0x100031e3
lea eax, [ebp - 0x724]
push eax
push 0x10153fb0
push ebx
call fcn.1006ed90
add esp, 0xc
lea ecx, [ebp - 0xb54]
push ecx
call fcn.100112d0
add esp, 4
mov dword [0x101c2e80], esi
mov dword [0x101a8990], esi
mov edx, dword [0x101c2e7c]
mov dword [0x101a8994], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x460], eax
cmp dword [edi + 0x45c], ebx
je 0x1000325a
push str.WinHTTP_DownloadFromLocalNetworkServer___apasetup_
lea edx, [ebp - 0x724]
call fcn.100027f0
add esp, 4
cmp dword [0x101a8978], ebx
je 0x1000324e
lea eax, [ebp - 0x724]
push eax
push 0x10153fb0
push ebx
call fcn.1006ed90
add esp, 0xc
cmp dword [edi + 0x45c], ebx
jne 0x100033a6
cmp byte [0x101c2c70], bl
je 0x100033a6
cmp byte [0x101c2d78], bl
je 0x100033a6
push 0x101c2d78
push 0x101c2c70
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.10127dc0
push 0x802
call fcn.1006a7b0
add esp, 0x14
mov dword [ebp - 0xb30], eax
cmp eax, ebx
je 0x100033a6
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.100027f0
add esp, 4
cmp dword [0x101a8978], ebx
je 0x10003313
lea eax, [ebp - 0x724]
push eax
push 0x10153fb0
push ebx
call fcn.1006ed90
add esp, 0xc
lea ecx, [ebp - 0xb34]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetDefaultProxyConfiguration]
test eax, eax
je 0x10003371
mov dword [ebp - 0xb38], esi
cmp dword [0x101c2e88], ebx
jne 0x10003358
call fcn.100831a0
cmp eax, ebx
je 0x10003352
push 0x101c2d78
push 0x101c2c70
push str._Proxy_Configuration_Set:__s:_s_n
call fcn.10128a81
add esp, 0xc
mov dword [0x101c2e88], esi
cmp dword [0x101a8978], ebx
je 0x10003391
push 0x101c2d78
push 0x101c2c70
push str._Proxy_Configuration_Set:__s:_s
jmp 0x10003388
cmp dword [0x101a8978], ebx
je 0x10003391
push 0x101c2d78
push 0x101c2c70
push str._WinHttpSetDefaultProxyConfiguration_FAILED_to_set_to__s:_s
push ebx
call fcn.1006ed90
add esp, 0x10
mov edx, dword [ebp - 0xb30]
push edx
call fcn.1006a890
add esp, 4
mov dword [ebp - 0xb30], ebx
mov edx, dword [ebp + 0x10]
cmp dword [ebp - 0xb38], ebx
je 0x1000344b
cmp edx, ebx
je 0x100033eb
cmp byte [edx], bl
je 0x100033eb
xor eax, eax
mov word [ebp - 0x21c], ax
lea ecx, [ebp - 0x21c]
lea esp, [esp]
mov al, byte [edx]
cmp al, bl
je 0x100033e4
movzx ax, al
mov word [ecx], ax
add ecx, 2
add edx, esi
jmp 0x100033d0
xor edx, edx
mov word [ecx], dx
jmp 0x10003407
mov ecx, 0x101a2d28
lea edx, [ebp - 0x21c]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x100033f6
lea eax, [ebp - 0x21c]
push eax
push str.WinHTTPOpen_via_Proxy___UA___s_
lea edx, [ebp - 0x724]
call fcn.100027f0
add esp, 8
cmp dword [0x101a8978], ebx
je 0x1000343e
lea ecx, [ebp - 0x724]
push ecx
push 0x10153fb0
push ebx
call fcn.1006ed90
add esp, 0xc
push sym.DNSLIB.dll_Ordinal_44
push ebx
push ebx
push ebx
jmp 0x100034e0
cmp edx, ebx
je 0x1000347d
cmp byte [edx], bl
je 0x1000347d
xor eax, eax
mov word [ebp - 0x21c], ax
lea ecx, [ebp - 0x21c]
mov al, byte [edx]
cmp al, bl
je 0x10003476
movzx ax, al
mov word [ecx], ax
add ecx, 2
add edx, esi
jmp 0x10003462
xor edx, edx
mov word [ecx], dx
jmp 0x100034a1
mov ecx, 0x101a2d28
lea edx, [ebp - 0x21c]
jmp 0x10003490
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x10003490
lea eax, [ebp - 0x21c]
push eax
push str.WinHTTPOpen_Direct___UA___s_
lea edx, [ebp - 0x724]
call fcn.100027f0
add esp, 8
cmp dword [0x101a8978], ebx
je 0x100034d8
lea ecx, [ebp - 0x724]
push ecx
push 0x10153fb0
push ebx
call fcn.1006ed90
add esp, 0xc
push sym.DNSLIB.dll_Ordinal_44
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.1012e060
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 0x1015422c
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 4], 0xffffffff
jmp 0x10003567
lea esi, [edi + 0x480]
push str.WinHTTP_Returning_Session_
mov edx, esi
call fcn.100027f0
add esp, 4
cmp dword [0x101a8978], ebx
je 0x10003593
push esi
push 0x10153fb0
push ebx
call fcn.1006ed90
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.10127db1
mov esp, ebp
pop ebp
ret 0xc