Function at 0x4c16c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a149
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1208
call fcn.004e6f40
mov eax, dword [0x5a3604]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1198], ecx
mov byte [ebp - 0x1191], 0
mov dword [ebp - 0x11b0], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1090]
call fcn.00402522
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1030]
call fcn.00402522
mov byte [ebp - 4], 2
mov eax, 0x50
mov word [ebp - 0x11b4], ax
lea ecx, [ebp - 0x11b4]
push ecx
lea edx, [ebp - 0x1030]
push edx
lea eax, [ebp - 0x1090]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004bfa20
add esp, 0x10
movzx edx, word [ebp - 0x11b4]
cmp edx, 0x1bb
jne 0x4c179e
mov byte [ebp - 0x11a1], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1030]
call fcn.004024ae
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1090]
call fcn.004024ae
mov al, byte [ebp - 0x11a1]
jmp 0x4c1f58
lea eax, [ebp - 0x1090]
push eax
lea ecx, [ebp - 0x10c0]
push ecx
call fcn.004c2300
add esp, 8
mov dword [ebp - 0x11f4], eax
mov byte [ebp - 4], 3
movzx edx, word [ebp - 0x11b4]
push edx
lea eax, [ebp - 0x10c0]
push eax
mov ecx, dword [ebp - 0x1198]
call fcn.004c2040
mov byte [ebp - 0x11a2], al
movzx ecx, byte [ebp - 0x11a2]
test ecx, ecx
jne 0x4c1804
mov dword [ebp - 0x11f0], 1
push 0x59733c
lea edx, [ebp - 0x11f0]
push edx
call fcn.004f69d2
lea eax, [ebp - 0x10c0]
push eax
mov ecx, dword [ebp - 0x1198]
add ecx, 0x24
call fcn.004c5a90
lea ecx, [ebp - 0x1030]
push ecx
lea edx, [ebp - 0x1190]
push edx
call fcn.004c2300
add esp, 8
mov dword [ebp - 0x11ec], eax
mov eax, dword [ebp - 0x11ec]
mov dword [ebp - 0x11e8], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x11e8]
push ecx
mov ecx, dword [ebp - 0x1198]
add ecx, 0x24
call fcn.004c2440
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1190]
call fcn.00404cae
push 0
lea edx, [ebp - 0x10a8]
push edx
mov ecx, dword [ebp - 0x1198]
add ecx, 0x24
call fcn.004c5f70
mov dword [ebp - 0x11f8], eax
mov byte [ebp - 4], 5
push 0
lea ecx, [ebp - 0x10a8]
call sym.steamworks.exe_public:_int___thiscall_Json::Value::getOffsetStart_void_const
push eax
lea ecx, [ebp - 0x10a8]
call fcn.00404c67
push eax
mov eax, dword [ebp - 0x1198]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x11e4], eax
cmp dword [ebp - 0x11e4], 0xffffffff
jne 0x4c18de
mov dword [ebp - 0x11dc], 3
push 0x59733c
lea edx, [ebp - 0x11dc]
push edx
call fcn.004f69d2
mov dword [ebp - 0x11a8], 0
mov dword [ebp - 0x11b8], 0
mov dword [ebp - 0x11ac], 0
mov dword [ebp - 0x11a0], 0
mov byte [ebp - 0x1199], 0
mov dword [ebp - 0x11fc], 0x1000
mov eax, 1
test eax, eax
je 0x4c1ea2
push 0
push 0x1000
lea ecx, [ebp - 0x1018]
push ecx
mov edx, dword [ebp - 0x1198]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x11a8], eax
cmp dword [ebp - 0x11a8], 0xffffffff
jne 0x4c196c
mov dword [ebp - 0x11d8], 0xa
push 0x59733c
lea ecx, [ebp - 0x11d8]
push ecx
call fcn.004f69d2
cmp dword [ebp - 0x11a8], 0
jne 0x4c197a
jmp 0x4c1ea2
movzx edx, byte [ebp - 0x1199]
test edx, edx
jne 0x4c1e51
mov eax, dword [ebp - 0x11a8]
push eax
lea ecx, [ebp - 0x1018]
push ecx
lea ecx, [ebp - 0x1060]
call fcn.00404d01
mov dword [ebp - 0x1200], eax
mov byte [ebp - 4], 6
push 0
push str._r_n_r_n
lea ecx, [ebp - 0x1060]
call fcn.00412da8
mov dword [ebp - 0x11bc], eax
cmp dword [ebp - 0x11bc], 0xffffffff
jne 0x4c19e8
mov dword [ebp - 0x11d4], 0xd
push 0x59733c
lea edx, [ebp - 0x11d4]
push edx
call fcn.004f69d2
mov eax, dword [ebp - 0x11bc]
push eax
lea ecx, [ebp - 0x1018]
push ecx
lea ecx, [ebp - 0x1048]
call fcn.00404d01
mov dword [ebp - 0x1204], eax
mov byte [ebp - 4], 7
lea edx, [ebp - 0x1048]
push edx
lea ecx, [ebp - 0x1148]
call fcn.004c49a0
mov dword [ebp - 0x1208], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1148]
call fcn.004bf740
mov dword [ebp - 0x11d0], eax
mov eax, dword [ebp - 0x1198]
mov ecx, dword [ebp - 0x11d0]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x1198]
cmp dword [edx + 4], 0x190
jne 0x4c1a71
mov dword [ebp - 0x11cc], 5
push 0x59733c
lea eax, [ebp - 0x11cc]
push eax
call fcn.004f69d2
mov ecx, dword [ebp - 0x1198]
cmp dword [ecx + 4], 0x12c
jle 0x4c1c8d
mov edx, dword [ebp - 0x1198]
cmp dword [edx + 4], 0x190
jge 0x4c1c8d
push str.Location
lea ecx, [ebp - 0x10d8]
call fcn.00404cd2
mov dword [ebp - 0x120c], eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x10d8]
push eax
lea ecx, [ebp - 0x1178]
push ecx
lea ecx, [ebp - 0x1148]
call fcn.004c4ed0
mov dword [ebp - 0x11c8], eax
mov edx, dword [ebp - 0x11c8]
mov dword [ebp - 0x11c4], edx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x11c4]
push eax
lea ecx, [ebp - 0x1078]
push ecx
call fcn.004c0990
add esp, 8
mov dword [ebp - 0x1210], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1178]
call fcn.00404cae
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x10d8]
call fcn.00404cae
push 0
push 0x55f56c
lea ecx, [ebp - 0x1078]
call fcn.00404b49
test eax, eax
je 0x4c1ba8
push 0
push str.https:__
lea ecx, [ebp - 0x1078]
call fcn.00404b49
test eax, eax
je 0x4c1ba8
lea edx, [ebp - 0x1078]
push edx
lea ecx, [ebp - 0x1030]
call fcn.00405436
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1078]
call fcn.004024ae
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1148]
call fcn.004c4c80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1048]
call fcn.00404cae
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1060]
call fcn.00404cae
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10a8]
call fcn.00404cae
jmp 0x4c1819
mov eax, dword [ebp - 0x1198]
cmp dword [eax + 8], 0xffffffff
je 0x4c1bd1
mov ecx, dword [ebp - 0x1198]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x1198]
mov dword [eax + 8], 0xffffffff
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x1078]
call fcn.00402484
push eax
mov eax, dword [ebp - 0x1198]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1198]
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 0x11a3], al
mov cl, byte [ebp - 0x11a3]
mov byte [ebp - 0x11a4], cl
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1078]
call fcn.004024ae
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1148]
call fcn.004c4c80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1048]
call fcn.00404cae
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1060]
call fcn.00404cae
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10a8]
call fcn.00404cae
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10c0]
call fcn.00404cae
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1030]
call fcn.004024ae
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1090]
call fcn.004024ae
mov al, byte [ebp - 0x11a4]
jmp 0x4c1f58
push str.Content_Length
lea ecx, [ebp - 0x10f0]
call fcn.00404cd2
mov dword [ebp - 0x1214], eax
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x10f0]
push edx
lea eax, [ebp - 0x1160]
push eax
lea ecx, [ebp - 0x1148]
call fcn.004c4ed0
mov dword [ebp - 0x11e0], eax
mov ecx, dword [ebp - 0x11e0]
call fcn.00404c67
push eax
call fcn.0050b890
add esp, 4
mov dword [ebp - 0x11ac], eax
lea ecx, [ebp - 0x1160]
call fcn.00404cae
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x10f0]
call fcn.00404cae
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x11ac]
mov dword [ecx], edx
cmp dword [ebp - 0x11ac], 0x800000
jg 0x4c1d1a
cmp dword [ebp - 0x11ac], 0
jg 0x4c1d35
mov dword [ebp - 0x11c0], 0xc
push 0x59733c
lea eax, [ebp - 0x11c0]
push eax
call fcn.004f69d2
mov ecx, dword [ebp - 0x11ac]
push ecx
call fcn.00509d2e
add esp, 4
mov dword [ebp - 0x11b0], eax
mov edx, dword [ebp - 0x11a8]
sub edx, dword [ebp - 0x11bc]
sub edx, 4
mov dword [ebp - 0x11b8], edx
cmp dword [ebp - 0x11b8], 0
jle 0x4c1da4
mov eax, dword [ebp - 0x11b8]
push eax
mov ecx, dword [ebp - 0x11bc]
lea edx, [ebp + ecx - 0x1014]
push edx
mov eax, dword [ebp - 0x11b0]
add eax, dword [ebp - 0x11a0]
push eax
call fcn.004f4b10
add esp, 0xc
mov ecx, dword [ebp - 0x11a0]
add ecx, dword [ebp - 0x11b8]
mov dword [ebp - 0x11a0], ecx
mov edx, dword [ebp - 0x11ac]
cmp edx, dword [ebp - 0x11a0]
jne 0x4c1deb
mov byte [ebp - 0x1191], 1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1148]
call fcn.004c4c80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1048]
call fcn.00404cae
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1060]
call fcn.00404cae
jmp 0x4c1ea2
mov byte [ebp - 0x1199], 1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1148]
call fcn.004c4c80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1048]
call fcn.00404cae
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1060]
call fcn.00404cae
jmp 0x4c1917
mov eax, dword [ebp - 0x11a8]
push eax
lea ecx, [ebp - 0x1018]
push ecx
mov edx, dword [ebp - 0x11b0]
add edx, dword [ebp - 0x11a0]
push edx
call fcn.004f4b10
add esp, 0xc
mov eax, dword [ebp - 0x11a0]
add eax, dword [ebp - 0x11a8]
mov dword [ebp - 0x11a0], eax
mov ecx, dword [ebp - 0x11a0]
cmp ecx, dword [ebp - 0x11ac]
jl 0x4c1e9d
mov byte [ebp - 0x1191], 1
jmp 0x4c1ea2
jmp 0x4c1917
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10a8]
call fcn.00404cae
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10c0]
call fcn.00404cae
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1030]
call fcn.004024ae
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1090]
call fcn.004024ae
jmp 0x4c1f2c
mov dword [ebp - 4], 0xffffffff
jmp 0x4c1f3c
movzx ecx, byte [ebp - 0x1191]
test ecx, ecx
je 0x4c1f52
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x11b0]
mov dword [edx], eax
mov al, byte [ebp - 0x1191]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e5fe9
mov esp, ebp
pop ebp
ret 0xc