Function at 0x50f45c
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, 0x81c
call fcn.00602270
mov ecx, dword [esp + 0x81c]
mov esi, ecx
mov eax, dword [esi + 0x36]
cmp eax, 1
je 0x50f776
mov edx, 0x4600000
xor eax, eax
push eax
push edx
push eax
push eax
push eax
push dword [esp + 0x848]
push str.POST
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0x10], eax
test eax, eax
je 0x50f74b
mov edx, dword [0x65e754]
cmp edx, 1
jne 0x50f4e3
mov dword [esp + 8], 0x70000000
lea edx, [esp + 8]
push 4
push edx
push 6
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionA]
lea eax, [esp + 8]
push 4
push eax
push 5
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
jmp 0x50f4f4
call fcn.004ee29c
movsx eax, ax
cmp eax, 7
je 0x50f743
mov eax, dword [esp + 0x838]
cmp eax, 1
je 0x50f50f
xor eax, eax
add esp, 0x820
pop ebx
pop ebp
pop esi
pop edi
ret 8
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 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 0x50f73c
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x50f54c
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x50f544
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 0x50f5f7
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 0x50f58d
cmp edx, 0x2f06
je 0x50f58d
cmp edx, 0x2f05
jne 0x50f5cf
mov dword [esp + 0x14], 4
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push ecx
push 0x1f
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
mov edx, dword [esp + 0x18]
or edx, 0x3100
mov dword [esp + 0x18], edx
lea ecx, [esp + 0x18]
push 4
push ecx
push 0x1f
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
jmp 0x50f525
mov esi, ebp
mov eax, dword [esi + 0x4a]
test eax, eax
je 0x50f6fa
mov edx, dword [eax]
push str.HTTP_Handshake_nfailed_
push eax
call dword [edx + 0x48]
add esp, 8
add esp, 0x820
pop ebx
pop ebp
pop esi
pop edi
ret 8
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push 0
push edx
push ecx
push 0x20000013
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x50f72a
lea edx, [esp + 0x20]
lea ecx, [esp + 0xc]
push ecx
push 0x800
push edx
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x50f619
mov ecx, 0x16
call fcn.004dbd30
mov esi, eax
test esi, esi
je 0x50f652
mov ecx, esi
call fcn.005410c4
jmp 0x50f654
xor esi, esi
mov ecx, esi
call fcn.00541280
test eax, eax
je 0x50f6d8
mov ecx, esi
call fcn.00541640
test eax, eax
je 0x50f6d8
mov ecx, esi
call fcn.0054158c
mov dword [esp + 4], eax
mov ecx, esi
call fcn.005416b4
mov dword [esp], eax
mov edi, dword [esp + 4]
mov dl, byte [edi]
test dl, dl
je 0x50f6ac
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x50f69b
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x50f693
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 0x50f6d8
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x50f6c7
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x50f6bf
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 0x50f6e4
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
test bl, bl
je 0x50f726
mov eax, dword [esp + 0x1c]
cmp eax, 0x197
jne 0x50f70c
xor bl, bl
jmp 0x50f525
mov eax, 1
add esp, 0x820
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, 0x820
pop ebx
pop ebp
pop esi
pop edi
ret 8
mov esi, ebp
jmp 0x50f70e
mov eax, 1
add esp, 0x820
pop ebx
pop ebp
pop esi
pop edi
ret 8
xor eax, eax
jmp 0x50f54c
mov eax, dword [esi + 0x10]
jmp 0x50f4b7
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 0x50f780
mov edx, dword [eax]
push str.HTTP_Open_nfor_POST_nfailed_
push eax
call dword [edx + 0x48]
add esp, 0x828
pop ebx
pop ebp
pop esi
pop edi
ret 8
mov edx, 0x4e00000
jmp 0x50f485
mov eax, 1
add esp, 0x820
pop ebx
pop ebp
pop esi
pop edi
ret 8