Function at 0x4c2bd0
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 0xffffffffffffffff
push 0x536c97
mov eax, dword fs:[0]
push eax
mov eax, 0x1330
call fcn.00507350
mov eax, dword [0x56d940]
xor eax, esp
mov dword [esp + 0x1328], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56d940]
xor eax, esp
push eax
lea eax, [esp + 0x1344]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1354]
mov eax, dword [esp + 0x1358]
xor ebx, ebx
push eax
lea ecx, [esp + 0x11c]
mov dword [esp + 0x1350], ebx
call fcn.00401500
mov byte [esp + 0x134c], 1
jmp 0x4c2c40
lea ecx, [ebp + 0x54]
mov dword [esp + 0x18], ebx
call fcn.00421cd0
mov eax, dword [ebp + 0x4c]
lea ecx, [esp + 0x118]
push ecx
lea edi, [ebp + 0x14]
mov ecx, edi
mov dword [ebp + 0x7c], 0xffffffff
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
call fcn.00402460
lea edx, [esp + 0x135c]
lea esi, [ebp + 0x30]
push edx
mov ecx, esi
call fcn.00402460
mov ecx, esi
call fcn.004034d0
test al, al
je 0x4c2d0c
push 0x557998
call fcn.004010d0
add esp, 4
push eax
push ebx
push 0x557998
mov ecx, edi
call fcn.00406a70
mov esi, eax
cmp esi, 0xffffffff
je 0x4c2d0c
lea ebx, [esi + 1]
mov eax, edi
lea ecx, [esp + 0x38]
call fcn.004c87f0
push eax
lea ecx, [ebp + 0x30]
mov byte [esp + 0x1350], 2
call fcn.00402460
mov bl, 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x134c], bl
call fcn.00401540
mov eax, esi
lea ecx, [esp + 0x38]
call fcn.004c87c0
push eax
lea ecx, [ebp + 0x14]
mov byte [esp + 0x1350], 3
call fcn.00402460
lea ecx, [esp + 0x38]
mov byte [esp + 0x134c], bl
call fcn.00401540
lea ecx, [ebp + 0x30]
call fcn.004034d0
test al, al
jne 0x4c2d20
mov dword [esp + 0x24], 1
mov eax, dword [ebp + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4c2d3d
mov dword [esp + 0x18], 1
jmp 0x4c32aa
lea ecx, [esp + 0x70]
call fcn.004014d0
lea ecx, [esp + 0x8c]
call fcn.004014d0
lea ecx, [esp + 0xa8]
call fcn.004014d0
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x30]
push edx
lea ebx, [esp + 0xb0]
lea edi, [esp + 0x94]
lea esi, [esp + 0x78]
lea ecx, [ebp + 0x14]
mov byte [esp + 0x1354], 6
call fcn.004c1d20
lea ecx, [esp + 0x54]
call fcn.00406370
mov byte [esp + 0x134c], 7
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4c2db8
lea ecx, [ebp + 0x30]
lea esi, [esp + 0x38]
call fcn.004bf120
mov byte [esp + 0x134c], 8
jmp 0x4c2dd1
cmp eax, 1
jne 0x4c2de8
lea ecx, [ebp + 0x30]
lea edi, [esp + 0x38]
call fcn.004beb50
mov byte [esp + 0x134c], 9
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
call fcn.00401580
lea ecx, [esp + 0x38]
call fcn.00401490
push 0
push 0
push 0
push 0
push 0x555dbc
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [esp + 0x28], esi
test esi, esi
jne 0x4c2e3c
lea ecx, [esp + 0x54]
call fcn.00401490
lea ecx, [esp + 0xa8]
call fcn.00401540
lea ecx, [esp + 0x8c]
call fcn.00401540
lea ecx, [esp + 0x70]
mov byte [esp + 0x134c], 1
call fcn.00401540
jmp 0x4c329f
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call ebx
test eax, eax
jne 0x4c2e58
mov dword [esp + 0x18], 1
jmp 0x4c2e05
mov ecx, dword [esp + 0x2c]
push 0
push 0
push 3
push 0
push 0
push ecx
lea ecx, [esp + 0x88]
call fcn.00401560
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov dword [esp + 0x20], edi
test edi, edi
jne 0x4c2ebc
lea ecx, [esp + 0x54]
call fcn.00401490
lea ecx, [esp + 0xa8]
call fcn.00401540
lea ecx, [esp + 0x8c]
call fcn.00401540
lea ecx, [esp + 0x70]
mov byte [esp + 0x134c], 1
call fcn.00401540
jmp 0x4c3294
mov edx, dword [ebp + 0xc]
push 0
push edx
call ebx
test eax, eax
jne 0x4c2ed2
mov dword [esp + 0x18], 1
jmp 0x4c2e85
lea ecx, [esp + 0xe0]
call fcn.004014d0
cmp dword [esp + 0x24], 0
mov byte [esp + 0x134c], 0xa
lea ecx, [esp + 0xe0]
jne 0x4c2efb
push 0x557be8
jmp 0x4c2f00
push str.POST
call fcn.004065b0
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x90]
push ecx
lea esi, [esp + 0x104]
call fcn.004c39b0
add esp, 8
mov byte [esp + 0x134c], 0xb
cmp dword [esp + 0x34], 4
mov eax, 0x80400002
jne 0x4c2f3d
mov eax, 0x80c00002
push 0
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x110]
call fcn.00401560
push eax
lea ecx, [esp + 0xf8]
call fcn.00401560
push eax
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
je 0x4c3237
mov edx, dword [ebp + 0xc]
push 0
push edx
call ebx
test eax, eax
jne 0x4c2f8a
mov dword [esp + 0x18], 1
jmp 0x4c3237
push str.Content_Type:_application_x_www_form_urlencoded_r_n
lea ecx, [esp + 0xc8]
call fcn.00401500
push 0x20000000
lea ecx, [esp + 0xc8]
mov byte [esp + 0x1350], 0xc
call fcn.00402000
push eax
lea ecx, [esp + 0xcc]
call fcn.00401560
mov ebx, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push eax
push edi
call ebx
test eax, eax
je 0x4c322b
lea esi, [ebp + 0xb8]
mov ecx, esi
call fcn.004034d0
test al, al
jne 0x4c302a
mov ecx, esi
call fcn.00401560
push eax
push str.Referer:__s_r_n
lea ecx, [esp + 0xcc]
call fcn.004c8830
add esp, 8
push 0x20000000
lea ecx, [esp + 0xc8]
call fcn.00402000
push eax
lea ecx, [esp + 0xcc]
call fcn.00401560
push eax
push edi
call ebx
test eax, eax
je 0x4c322b
lea ecx, [esp + 0x54]
call fcn.00402000
push eax
lea ecx, [esp + 0x58]
call fcn.004014b0
push eax
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4c322b
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x13c]
push edx
push 5
mov ebx, 0x104
push edi
mov word [esp + 0x148], ax
mov dword [esp + 0x28], ebx
call esi
test eax, eax
je 0x4c30b5
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x134]
push edx
xor eax, eax
push str.Content_length:__s__n
mov word [esp + ecx*2 + 0x13c], ax
call fcn.00503827
lea eax, [esp + 0x13c]
push eax
call fcn.00501acf
add esp, 0xc
mov dword [esp + 0x30], eax
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x13c]
push edx
push 0x13
push edi
mov dword [esp + 0x28], ebx
call esi
test eax, eax
je 0x4c3113
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x134]
push edx
xor eax, eax
push str.Status_code:__s__n
mov word [esp + ecx*2 + 0x13c], ax
call fcn.00503827
lea eax, [esp + 0x13c]
push eax
call fcn.00501acf
add esp, 0xc
mov dword [ebp + 0x7c], eax
cmp eax, 0xc8
jne 0x4c3113
mov dword [esp + 0x1c], 1
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x13c]
push edx
push 0x14
push edi
mov dword [esp + 0x28], ebx
call esi
test eax, eax
je 0x4c3152
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x134]
push edx
xor eax, eax
push str.Status_text:__s__n
mov word [esp + ecx*2 + 0x13c], ax
call fcn.00503827
add esp, 8
lea eax, [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x344]
push ecx
push edi
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x24], 0x1000
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4c3212
nop
cmp dword [esp + 0x14], 0
jbe 0x4c3212
mov ecx, dword [esp + 0x30]
test ecx, ecx
jle 0x4c319d
mov eax, esi
imul eax, eax, 0x64
cdq
idiv ecx
mov ebx, eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4c31b5
fldz
mov edx, dword [ecx]
mov eax, dword [edx + 4]
sub esp, 8
fstp qword [esp]
push ebx
push ebp
call eax
mov ecx, dword [esp + 0x14]
lea edx, [esi + ecx]
push edx
lea ecx, [ebp + 0x54]
call fcn.004215e0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x340]
push ecx
lea ecx, [ebp + 0x54]
call fcn.004b14b0
add eax, esi
push eax
call fcn.0050a920
add esi, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x1000
lea eax, [esp + 0x344]
push eax
push edi
mov dword [esp + 0x24], 0x1000
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4c3180
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4c322b
fldz
mov edx, dword [ecx]
mov eax, dword [edx + 4]
sub esp, 8
fstp qword [esp]
push 0x64
push ebp
call eax
lea ecx, [esp + 0xc4]
call fcn.00401540
lea ecx, [esp + 0xfc]
call fcn.00401540
lea ecx, [esp + 0xe0]
call fcn.00401540
lea ecx, [esp + 0x54]
call fcn.00401490
lea ecx, [esp + 0xa8]
call fcn.00401540
lea ecx, [esp + 0x8c]
call fcn.00401540
lea ecx, [esp + 0x70]
mov byte [esp + 0x134c], 1
call fcn.00401540
test edi, edi
je 0x4c328c
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4c329f
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x4c32aa
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
cmp ecx, ebx
je 0x4c3317
cmp dword [esp + 0x18], ebx
jne 0x4c3317
cmp dword [esp + 0x1c], ebx
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [ebp + 0xc]
push eax
sete al
movzx eax, al
push eax
push ebp
lea eax, [esp + 0x44]
push eax
call edx
push eax
lea ecx, [esp + 0x11c]
mov byte [esp + 0x1350], 0xd
call fcn.00402460
lea ecx, [esp + 0x38]
mov byte [esp + 0x134c], 1
call fcn.00401540
lea ecx, [esp + 0x118]
call fcn.004034d0
test al, al
jne 0x4c3317
lea ecx, [ebp + 0x30]
call fcn.00421e50
jmp 0x4c2c40
lea ecx, [esp + 0x118]
call fcn.00401540
lea ecx, [esp + 0x135c]
call fcn.00401540
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1344]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1328]
xor ecx, esp
call fcn.005007b7
add esp, 0x133c
ret 0x24