Function at 0x4732b3
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ef35
mov eax, dword fs:[0]
push eax
mov eax, 0xbc1c
call fcn.00485c60
mov eax, dword [0x4b14c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0xbbd0], ebx
mov dword [ebp - 0xbbe8], ebx
mov dword [ebp - 0xbb98], 0xf
mov dword [ebp - 0xbb9c], ebx
mov byte [ebp - 0xbbac], bl
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_5.0__Windows_NT_6.1__AppleWebKit_535.19__KHTML__like_Gecko__Chrome_18.0.1025.142_Safari_535.19
mov dword [ebp - 4], ebx
mov dword [ebp - 0xbbd8], ebx
mov dword [ebp - 0xbbcc], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0xbbd4], eax
mov eax, 0x249f0
push eax
push eax
push eax
push eax
push dword [ebp - 0xbbd4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
xor eax, eax
push 0x1f3e
mov word [ebp - 0x1f50], ax
lea eax, [ebp - 0x1f4e]
push ebx
push eax
call fcn.00474d90
xor eax, eax
push 0x9c3e
mov word [ebp - 0xbb90], ax
lea eax, [ebp - 0xbb8e]
push ebx
push eax
call fcn.00474d90
push 0x3c
pop edi
push edi
lea eax, [ebp - 0xbc28]
push ebx
push eax
call fcn.00474d90
or dword [ebp - 0xbc20], 0xffffffff
lea eax, [ebp - 0x1f50]
mov dword [ebp - 0xbc18], eax
lea eax, [ebp - 0xbb90]
add esp, 0x24
cmp dword [esi + 0x14], 8
mov dword [ebp - 0xbbfc], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xbc28], edi
mov dword [ebp - 0xbc14], 0xfa0
mov dword [ebp - 0xbbf8], 0x4e20
jb 0x4733d4
mov ecx, dword [esi]
jmp 0x4733d6
mov ecx, esi
lea edx, [ebp - 0xbc28]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x47373c
cmp dword [ebp - 0xbbd4], ebx
je 0x473412
push ebx
push 0x50
lea eax, [ebp - 0x1f50]
push eax
push dword [ebp - 0xbbd4]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0xbbd8], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp dword [ebp - 0xbbd8], ebx
je 0x473454
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xbbfc]
push 0x49e26c
push dword [ebp - 0xbbd8]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0xbbcc], eax
cmp eax, ebx
je 0x473454
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
call edi
push ebx
push dword [ebp - 0xbbcc]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov edi, 0x49bf80
push edi
mov dword [ebp - 0xbbe0], eax
call fcn.0047519c
pop ecx
add esi, 0x38
mov ecx, edi
mov dword [ebp - 0xbbdc], esi
call fcn.00401827
cmp dword [ebp - 0xbbe0], ebx
je 0x47355c
lea eax, [ebp - 0xbbd0]
push eax
push dword [ebp - 0xbbcc]
mov dword [ebp - 0xbbd0], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4734c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.0047a528
pop ecx
pop ecx
mov eax, dword [ebp - 0xbbd0]
inc eax
push eax
call fcn.00473d4a
mov esi, eax
pop ecx
cmp esi, ebx
je 0x47354b
mov eax, dword [ebp - 0xbbd0]
inc eax
push eax
push ebx
push esi
call fcn.00474d90
add esp, 0xc
lea eax, [ebp - 0xbbe8]
push eax
push dword [ebp - 0xbbd0]
push esi
push dword [ebp - 0xbbcc]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x473513
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpReadData._n
jmp 0x473519
push esi
push 0x4a1144
call fcn.0047a528
pop ecx
pop ecx
push esi
call fcn.00477140
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0xbbac]
call fcn.004141fe
push esi
call fcn.0047501b
xor ebx, ebx
pop ecx
cmp dword [ebp - 0xbbd0], ebx
jbe 0x47355c
jmp 0x473491
push str.Out_of_memory_n
call fcn.0047a528
pop ecx
mov dword [ebp - 0xbbd0], ebx
mov eax, dword [ebp - 0xbb9c]
cmp eax, ebx
je 0x4736e9
lea esi, [ebp - 0xbbc8]
call fcn.0040ebfe
mov ebx, eax
mov eax, dword [ebp - 0xbbdc]
mov byte [ebp - 4], 1
call fcn.004062ac
push 1
xor edi, edi
mov byte [ebp - 4], 0
call fcn.0040162a
mov eax, dword [ebp - 0xbbdc]
cmp dword [eax + 0x14], 8
jb 0x4735a3
mov ecx, dword [eax]
jmp 0x4735a5
mov ecx, eax
cmp dword [ebp - 0xbb98], 0x10
mov eax, dword [ebp - 0xbbac]
jae 0x4735ba
lea eax, [ebp - 0xbbac]
mov edx, dword [ebp - 0xbb9c]
add edx, eax
cmp dword [ebp - 0xbb98], 0x10
mov eax, dword [ebp - 0xbbac]
jae 0x4735e4
lea eax, [ebp - 0xbbac]
jmp 0x4735e4
movsx si, byte [eax]
mov word [ecx], si
add ecx, 2
inc eax
cmp eax, edx
jne 0x4735d9
lea eax, [ebp - 0xbbec]
push eax
push dword [ebp - 0xbbcc]
xor esi, esi
mov dword [ebp - 0xbbec], esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4736e1
cmp dword [ebp - 0xbb98], 0x10
mov eax, dword [ebp - 0xbbac]
jae 0x473620
lea eax, [ebp - 0xbbac]
push esi
push esi
push dword [ebp - 0xbb9c]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push 8
mov edi, 0xfde9
push edi
call esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jle 0x4736e1
xor ecx, ecx
push 2
pop edx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00473d4a
pop ecx
mov dword [ebp - 0xbbe4], eax
test eax, eax
je 0x4736e1
lea ecx, [ebx + ebx]
push ecx
push 0
push eax
call fcn.00474d90
mov eax, dword [ebp - 0xbbac]
add esp, 0xc
cmp dword [ebp - 0xbb98], 0x10
jae 0x47368f
lea eax, [ebp - 0xbbac]
push ebx
push dword [ebp - 0xbbe4]
push dword [ebp - 0xbb9c]
push eax
push 8
push edi
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xbbe4]
lea eax, [ebp - 0xbbc8]
call fcn.00401556
mov ecx, dword [ebp - 0xbbdc]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xbbc8]
mov byte [ebp - 4], 2
call fcn.00401590
push 1
xor edi, edi
lea esi, [ebp - 0xbbc8]
call fcn.0040162a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp dword [ebp - 0xbbe0], ebx
jne 0x473704
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_has_occurred._n
call fcn.0047a528
pop ecx
pop ecx
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0xbbcc], ebx
je 0x47371a
push dword [ebp - 0xbbcc]
call esi
cmp dword [ebp - 0xbbd8], ebx
je 0x47372a
push dword [ebp - 0xbbd8]
call esi
cmp dword [ebp - 0xbbd4], ebx
je 0x473742
push dword [ebp - 0xbbd4]
call esi
jmp 0x473742
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 1
lea ecx, [ebp - 0xbbac]
call fcn.00406268
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00474c58
leave
ret