Function at 0x50f474
Capabilities:
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push edi
push esi
push ebp
push ebx
push ecx
mov eax, 0x818
call fcn.006021b0
mov ecx, dword [esp + 0x818]
mov esi, ecx
mov eax, dword [esi + 0x36]
cmp eax, 1
je 0x50f73e
mov edx, 0x4600000
xor eax, eax
push eax
push edx
push eax
push eax
push eax
push dword [esp + 0x844]
push str.POST
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0x10], eax
test eax, eax
je 0x50f713
mov eax, dword [esp + 0x834]
cmp eax, 1
je 0x50f4df
xor eax, eax
add esp, 0x81c
pop ebx
pop ebp
pop esi
pop edi
ret 8
mov dword [esp + 8], 0
mov dword [esp + 0xc], 4
mov al, 1
mov bl, al
mov ebp, esi
mov edx, dword [ebp + 4]
mov dword [edx + 4], 0
mov edi, dword [ebp + 0x2c]
test edi, edi
je 0x50f70c
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x50f51c
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x50f514
xor edx, edx
push edx
push edx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x50f5c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 4]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + 4]
cmp edx, 0x2f0d
je 0x50f55d
cmp edx, 0x2f06
je 0x50f55d
cmp edx, 0x2f05
jne 0x50f59f
mov dword [esp + 0x10], 4
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push ecx
push 0x1f
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
mov edx, dword [esp + 0x14]
or edx, 0x3100
mov dword [esp + 0x14], edx
lea ecx, [esp + 0x14]
push 4
push ecx
push 0x1f
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
jmp 0x50f4f5
mov esi, ebp
mov eax, dword [esi + 0x4a]
test eax, eax
je 0x50f6ca
mov edx, dword [eax]
push str.HTTP_Handshake_nfailed_
push eax
call dword [edx + 0x48]
add esp, 8
add esp, 0x81c
pop ebx
pop ebp
pop esi
pop edi
ret 8
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
push 0
push edx
push ecx
push 0x20000013
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x50f6fa
lea edx, [esp + 0x1c]
lea ecx, [esp + 8]
push ecx
push 0x800
push edx
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edx, dword [esp + 8]
test edx, edx
jne 0x50f5e9
mov ecx, 0x16
call fcn.004dbd80
mov esi, eax
test esi, esi
je 0x50f622
mov ecx, esi
call fcn.00541040
jmp 0x50f624
xor esi, esi
mov ecx, esi
call fcn.005411fc
test eax, eax
je 0x50f6a8
mov ecx, esi
call fcn.005415bc
test eax, eax
je 0x50f6a8
mov ecx, esi
call fcn.00541508
mov dword [esp + 4], eax
mov ecx, esi
call fcn.00541630
mov dword [esp], eax
mov edi, dword [esp + 4]
mov dl, byte [edi]
test dl, dl
je 0x50f67c
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x50f66b
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x50f663
push eax
mov edx, dword [esp + 8]
push edx
push 0x2b
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov edi, dword [esp]
mov dl, byte [edi]
test dl, dl
je 0x50f6a8
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x50f697
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x50f68f
push eax
mov edx, dword [esp + 4]
push edx
push 0x2c
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test esi, esi
je 0x50f6b4
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
test bl, bl
je 0x50f6f6
mov eax, dword [esp + 0x18]
cmp eax, 0x197
jne 0x50f6dc
xor bl, bl
jmp 0x50f4f5
mov eax, 1
add esp, 0x81c
pop ebx
pop ebp
pop esi
pop edi
ret 8
mov esi, ebp
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
add esp, 0x81c
pop ebx
pop ebp
pop esi
pop edi
ret 8
mov esi, ebp
jmp 0x50f6de
mov eax, 1
add esp, 0x81c
pop ebx
pop ebp
pop esi
pop edi
ret 8
xor eax, eax
jmp 0x50f51c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 0x4a]
test eax, eax
je 0x50f748
mov edx, dword [eax]
push str.HTTP_Open_nfor_POST_nfailed_
push eax
call dword [edx + 0x48]
add esp, 0x824
pop ebx
pop ebp
pop esi
pop edi
ret 8
mov edx, 0x4e00000
jmp 0x50f49d
mov eax, 1
add esp, 0x81c
pop ebx
pop ebp
pop esi
pop edi
ret 8