Function at 0x1004bab0
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10162a3c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x468
mov eax, dword [0x101b9578]
push ebx
push esi
mov dword [esp + 0x468], eax
mov eax, dword [section..inidata]
xor esi, esi
cmp eax, esi
push edi
jne 0x1004baf5
mov eax, 1
jmp 0x1004c005
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], 0x1388
call fcn.10152999
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x47c], esi
call fcn.10152999
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov word [esp + 0x65], ax
mov byte [esp + 0x47c], 1
mov dword [esp + 0x48], 0x101748b8
mov dword [esp + 0x4c], esi
mov byte [esp + 0x54], 0
mov byte [esp + 0x67], al
mov dword [esp + 0x24], 0x14
mov dword [esp + 0x14], esi
call fcn.10152999
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x47c], 2
call fcn.10152999
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 0x18]
cmp ecx, esi
mov byte [esp + 0x47c], 3
jne 0x1004bbc4
mov eax, 0x101cfa6c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004bbb3
sub eax, edx
push eax
push 0x101cfa6c
jmp 0x1004bbdb
mov eax, ecx
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1004bbd0
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.100025e0
cmp dword [ebp + 0x20], esi
je 0x1004bc06
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
push str.https:___s:_d__s__s
lea ecx, [esp + 0x34]
push ecx
jmp 0x1004bc21
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
push str.http:___s:_d__s__s
lea eax, [esp + 0x34]
push eax
call fcn.10001360
add esp, 0x18
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x5c]
push ecx
push edx
call fcn.1015a966
push esi
push esi
push esi
push esi
push str.Mozilla_5.0__Windows__U__Windows_NT_5.1__en_US__AppleWebKit_525.13__KHTML__like_Gecko__Chrome_0.2.149.29_Safari_525.13
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
cmp ebx, esi
mov dword [esp + 0x3c], ebx
je 0x1004bf66
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea eax, [esp + 0x30]
push eax
push 2
push ebx
call edi
push 4
lea ecx, [esp + 0x30]
push ecx
push 6
push ebx
call edi
push 4
lea edx, [esp + 0x30]
push edx
push 5
push ebx
call edi
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
push esi
push 0x200
push 3
push esi
push esi
push eax
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, esi
mov dword [esp + 0x40], eax
je 0x1004bf5f
mov edx, dword [ebp + 0x20]
neg edx
push esi
sbb edx, edx
and edx, 0x800000
or edx, 0x8408c200
push edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x50]
push ecx
push esi
push esi
push edx
push 0x10167eec
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
mov dword [esp + 0x30], esi
je 0x1004bf54
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x1004bd0a
push 0x20000000
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x1004bd75
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x1f
push esi
mov dword [esp + 0x2c], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
test eax, eax
je 0x1004bd5f
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x14]
push eax
push 0x1f
or ecx, 0x3380
push esi
mov dword [esp + 0x20], ecx
call edi
test eax, eax
jne 0x1004bd75
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Set_Internet_Option_Error___d
jmp 0x1004bd6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetQueryOption_Error___d
push 2
call fcn.1001b560
add esp, 0xc
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
push edx
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x1004bf4d
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x5c]
push ecx
push 0x13
push esi
call edi
test eax, eax
je 0x1004bf4d
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jae 0x1004bdbd
mov byte [esp + eax + 0x54], 0
lea edx, [esp + 0x54]
push edx
call fcn.101019d5
mov ecx, dword [esp + 0x24]
push ecx
push eax
push str.STATUS_CODE:__d____s
push 2
mov dword [esp + 0x28], eax
call fcn.1001b560
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp eax, 0xc8
jne 0x1004bf4d
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x1004bf45
push 0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x5c]
push eax
push 5
push esi
call edi
test eax, eax
je 0x1004bf06
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jae 0x1004be21
mov byte [esp + eax + 0x54], 0
lea ecx, [esp + 0x54]
push ecx
call fcn.101019d5
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
jbe 0x1004bf45
cmp eax, 0x3e8
jae 0x1004bf45
inc eax
push eax
call fcn.1015297a
mov dword [esp + 0x20], eax
xor eax, eax
mov byte [esp + 0x6c], 0
mov ecx, 0xff
lea edi, [esp + 0x6d]
rep stosd dword es:[edi], eax
add esp, 4
stosw word es:[edi], ax
lea edx, [esp + 0x10]
push edx
stosb byte es:[edi], al
push 0x400
lea eax, [esp + 0x70]
push eax
xor ebx, ebx
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x1004bede
lea esp, [esp]
mov eax, dword [esp + 0x14]
lea edx, [ebx + ecx]
cmp edx, eax
ja 0x1004bede
mov eax, dword [esp + 0x1c]
mov edx, ecx
shr ecx, 2
lea edi, [ebx + eax]
lea esi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add ebx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push 0x400
lea ecx, [esp + 0x70]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [esp + 0x10]
test ecx, ecx
mov esi, dword [esp + 0x30]
jne 0x1004be90
cmp ebx, dword [esp + 0x14]
jne 0x1004bef6
mov ecx, dword [ebp + 0x28]
lea eax, [esp + 0x68]
push eax
mov byte [esp + ebx + 0x6c], 0
call fcn.100032a0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10152975
mov ebx, dword [esp + 0x40]
jmp 0x1004bf42
push 0x401
call fcn.1015297a
add esp, 4
lea edx, [esp + 0x14]
push edx
push 0x400
mov edi, eax
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x1004bf3c
mov ecx, dword [ebp + 0x28]
push edi
mov byte [edi + eax], 0
call fcn.100032a0
push edi
call fcn.10152975
add esp, 4
mov dword [esp + 0x38], 1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x47c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004bf8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x47c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004bfb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x47c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004bfd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x47c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004c001
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x474]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x46c]
call fcn.1010122d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret