Function at 0x30012b18
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
sub esp, 0xe0
lea ebp, [esp - 4]
mov eax, dword [0x3003a6b0]
xor eax, ebp
mov dword [ebp + 0xe0], eax
push 0x2c
mov eax, 0x3002d559
call fcn.300153a4
mov edi, dword [ebp + 0xec]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x1c], edi
call fcn.30012b02
pop ecx
xor ebx, ebx
push 3
push 0x30030c5c
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], ebx
mov dword [ebp + 0x30], 0xf
mov dword [ebp + 0x2c], ebx
mov byte [ebp + 0x1c], bl
call fcn.30003a20
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 1
mov esi, ecx
cmp dword [ecx + 0x10], ebx
jne 0x30012e49
push 0xffffffffffffffff
push ebx
push edi
call fcn.300036b0
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x1c]
push eax
lea ecx, [esi + 0x1c]
call fcn.300036b0
push str.POST
lea ecx, [esi + 0x1c]
mov byte [esi + 0x38], bl
call fcn.300079e0
test eax, eax
jne 0x30012c33
push 0xf
pop edi
push 0x21
push str.application_x_www_form_urlencoded
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x48], ebx
mov byte [ebp + 0x38], bl
call fcn.30003a20
push 0xc
push str.Content_Type
lea ecx, [ebp + 0xa8]
mov byte [ebp - 4], 2
mov dword [ebp + 0xbc], edi
mov dword [ebp + 0xb8], ebx
mov byte [ebp + 0xa8], bl
call fcn.30003a20
lea eax, [ebp + 0xa8]
push eax
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 3
call fcn.3001275a
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0x38]
push ecx
mov ecx, eax
call fcn.300036b0
push ebx
push 1
lea ecx, [ebp + 0xa8]
call fcn.30001a80
push ebx
push 1
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.30001a80
lea eax, [esi + 0x4c]
cmp dword [eax + 0x14], 0x10
jb 0x30012c3e
mov eax, dword [eax]
push ebx
push ebx
push ebx
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
push eax
lea ecx, [esi + 0x10c]
call fcn.3000ebeb
cmp dword [esi + 0x10c], ebx
je 0x30012e49
push dword [ebp - 0x1c]
lea ecx, [esi + 0x68]
call fcn.3001160c
lea eax, [ebp + 0x70]
push eax
lea ecx, [esi + 0x68]
call fcn.3001139f
cmp dword [ebp + 0x84], 0x10
movzx ecx, word [esi + 0x80]
mov edx, dword [ebp + 0x70]
mov byte [ebp - 4], 4
jae 0x30012c93
lea edx, [ebp + 0x70]
mov eax, dword [esi + 0x10c]
push ebx
push ebx
push 3
push ebx
push ebx
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
push eax
lea ecx, [esi + 0x110]
call fcn.3000ebeb
cmp dword [esi + 0x110], ebx
jne 0x30012cc4
push ebx
push 1
jmp 0x30012e41
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp + 0x54]
call fcn.30006a80
lea eax, [ebp + 0xa8]
push eax
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 5
call fcn.300117a8
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x38]
push eax
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 6
call fcn.3001170b
push dword [ebp - 0x1c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp]
push eax
call fcn.3000d426
add esp, 0xc
push ebx
push 1
lea ecx, [ebp + 0x38]
call fcn.30001a80
push ebx
push 1
lea ecx, [ebp + 0xa8]
mov byte [ebp - 4], 0xa
call fcn.30001a80
push 8
push str.HTTP_1.1
lea ecx, [ebp + 0xc4]
mov dword [ebp + 0xd8], 0xf
mov dword [ebp + 0xd4], ebx
mov byte [ebp + 0xc4], bl
call fcn.30003a20
lea eax, [ebp + 0x8c]
push eax
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 0xb
call fcn.300121dc
push ebx
push 0x30034088
lea ecx, [ebp + 0x8c]
mov byte [ebp - 4], 0xc
call fcn.30003a20
cmp dword [esi + 0x74], 4
mov dword [ebp - 0x18], 0x40c0300
jne 0x30012d8b
mov dword [ebp - 0x18], 0x48c0300
push 0x30034088
lea ecx, [ebp + 0x8c]
call fcn.300079e0
test eax, eax
je 0x30012db8
cmp dword [ebp + 0xa0], 0x10
jb 0x30012db0
mov edx, dword [ebp + 0x8c]
jmp 0x30012dba
lea edx, [ebp + 0x8c]
jmp 0x30012dba
xor edx, edx
cmp dword [ebp + 0xd8], 0x10
mov eax, dword [ebp + 0xc4]
jae 0x30012dcf
lea eax, [ebp + 0xc4]
cmp dword [ebp + 0x14], 0x10
mov ecx, dword [ebp]
mov dword [ebp - 0x14], eax
jae 0x30012dde
lea ecx, [ebp]
cmp dword [ebp + 0x68], 0x10
mov eax, dword [ebp + 0x54]
jae 0x30012dea
lea eax, [ebp + 0x54]
mov edi, dword [esi + 0x110]
push ebx
push dword [ebp - 0x18]
push ebx
push edx
push dword [ebp - 0x14]
push ecx
push eax
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push eax
lea ecx, [esi + 0x114]
call fcn.3000ebeb
xor esi, esi
push ebx
inc esi
lea ecx, [ebp + 0x8c]
push esi
call fcn.30001a80
push ebx
push esi
lea ecx, [ebp + 0xc4]
call fcn.30001a80
push ebx
push esi
lea ecx, [ebp]
call fcn.30001a80
push ebx
push esi
lea ecx, [ebp + 0x54]
call fcn.30001a80
push ebx
push esi
lea ecx, [ebp + 0x70]
call fcn.30001a80
push ebx
push 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], bl
call fcn.30001a80
push ebx
push 0x30034088
lea ecx, [ebp + 0x8c]
mov dword [ebp + 0xa0], 0xf
mov dword [ebp + 0x9c], ebx
mov byte [ebp + 0x8c], bl
call fcn.30003a20
mov esi, dword [ebp - 0x30]
lea edi, [esi + 0x114]
mov dword [ebp - 0x14], esi
cmp dword [edi], ebx
je 0x30013105
mov dword [ebp - 0x28], 1
mov dword [ebp + 0xd8], 0xf
mov dword [ebp + 0xd4], ebx
mov byte [ebp + 0xc4], bl
mov ecx, dword [esi + 0x40]
mov eax, dword [ecx]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x1c], eax
cmp eax, ecx
je 0x30012f51
lea ecx, [eax + 0xc]
add eax, 0x28
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x28], ebx
je 0x30012ed9
mov dword [ebp - 0x28], ebx
jmp 0x30012eeb
push 1
push 0x30034188
lea ecx, [ebp + 0xc4]
call fcn.300023b0
push 0x30030b68
push dword [ebp - 0x38]
lea eax, [ebp + 0x54]
push eax
call fcn.30007cc0
push dword [ebp - 0x34]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.3000ace0
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xc4]
mov byte [ebp - 4], 0x10
call fcn.30002580
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.30001a80
push ebx
push 1
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0xe
call fcn.30001a80
lea ecx, [ebp - 0x1c]
call fcn.3000ecf5
mov eax, dword [ebp - 0x1c]
cmp eax, dword [esi + 0x40]
jne 0x30012ec3
cmp dword [ebp + 0xa0], 0x10
mov edx, dword [ebp + 0x8c]
jae 0x30012f66
lea edx, [ebp + 0x8c]
cmp dword [ebp + 0xd8], 0x10
mov ecx, dword [ebp + 0xc4]
jae 0x30012f7b
lea ecx, [ebp + 0xc4]
push dword [ebp + 0x9c]
mov eax, dword [edi]
push edx
push dword [ebp + 0xd4]
push ecx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x300130f7
mov eax, dword [edi]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xec
push ecx
push 0x20000013
push eax
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
je 0x300130f7
xor eax, eax
inc eax
push eax
lea ecx, [ebp + 0xb4]
mov dword [ebp - 0x24], eax
mov dword [ebp + 0xb4], ebx
mov dword [ebp + 0xb8], ebx
mov dword [ebp + 0xbc], ebx
call fcn.30010d6e
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp + 0xb4]
mov byte [ebp - 4], 0x11
push 0x14
push eax
call esi
test eax, eax
jne 0x3001306f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0xb4]
cmp eax, 0x7a
jne 0x300130f2
push dword [ebp - 0x24]
call fcn.30010d6e
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp + 0xb4]
push 0x14
push eax
call esi
lea ecx, [ebp + 0xb4]
test eax, eax
je 0x300130f2
lea eax, [ebp - 0xd]
push eax
mov byte [ebp - 0xd], bl
call fcn.30010d1c
mov ecx, dword [ebp - 0x14]
push dword [ebp + 0xb4]
add ecx, 0xf0
call fcn.30003b10
push 0x1000
lea ecx, [ebp + 0x7c]
mov dword [ebp + 0x7c], ebx
mov dword [ebp + 0x80], ebx
mov dword [ebp + 0x84], ebx
call fcn.30010d6e
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x20], ebx
xor esi, esi
jmp 0x300130cb
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jbe 0x300130e4
mov ecx, dword [ebp - 0x14]
add eax, esi
add ecx, 0xdc
push eax
call fcn.30010d6e
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xdc]
push dword [ebp + 0x7c]
add eax, esi
push eax
call fcn.300145f0
add esp, 0xc
add esi, dword [ebp - 0x20]
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
push ecx
push 0x1000
push dword [ebp + 0x7c]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x30013096
lea ecx, [ebp + 0x7c]
call fcn.30007fd0
lea ecx, [ebp + 0xb4]
call fcn.30007fd0
push ebx
push 1
lea ecx, [ebp + 0xc4]
call fcn.30001a80
push ebx
push 1
lea ecx, [ebp + 0x8c]
call fcn.30001a80
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xec]
cmp eax, 0xc8
je 0x30013134
cmp eax, 0x12d
je 0x30013134
mov byte [ebp - 0xd], bl
cmp eax, 0x12e
jne 0x30013138
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x30013148
call fcn.3000ee6a
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xe0]
xor ecx, ebp
call fcn.30014dbb
add ebp, 0xe4
leave
ret 4