Function at 0x404e56
Capabilities:
Connect socket
Create raw socket
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push 0x628
mov eax, 0x46c9ec
call fcn.004567d9
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x4bc], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push 0xf
mov dword [ebp - 0x4b4], eax
mov dword [ebp - 0x4c0], ebx
pop eax
mov dword [ebp - 0x4b8], ecx
mov dword [ebp - 0x4e4], edi
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x43c], ebx
mov byte [ebp - 0x44c], bl
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x458], ebx
mov byte [ebp - 0x468], bl
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x42c], bl
or dword [ebp - 0x430], 0xffffffff
push 0x3ff
lea eax, [ebp - 0x40f]
push ebx
push eax
mov byte [ebp - 4], 3
mov byte [ebp - 0x410], bl
call fcn.004568a0
add esp, 0xc
push esi
push 3
lea ecx, [ebp - 0x634]
call fcn.00404ca4
mov eax, dword [ebp - 0x4b4]
push dword [eax + 0x10]
lea ecx, [ebp - 0x624]
mov byte [ebp - 4], 4
call fcn.00403b7f
push esi
push 3
lea ecx, [ebp - 0x58c]
call fcn.00404ca4
push str._HTTP_1.1
push dword [ebp - 0x4bc]
lea eax, [ebp - 0x57c]
push str.POST
push eax
mov byte [ebp - 4], 5
call fcn.004037c8
pop ecx
pop ecx
push eax
call fcn.00403964
pop ecx
pop ecx
push eax
call fcn.004037c8
push eax
call fcn.0040443d
lea eax, [ebp - 0x57c]
push str.User_Agent:_RedisStudio
push eax
call fcn.004037c8
push eax
call fcn.0040443d
add esp, 0x18
push dword [ebp - 0x4b8]
lea eax, [ebp - 0x57c]
push str.Host:
push eax
call fcn.004037c8
pop ecx
pop ecx
push eax
call fcn.00403964
push eax
call fcn.0040443d
mov eax, dword [ebp - 0x4b4]
add esp, 0xc
push dword [eax + 0x10]
lea eax, [ebp - 0x57c]
push str.Content_Length:
push eax
call fcn.004037c8
pop ecx
pop ecx
mov ecx, eax
call fcn.00403b7f
push eax
call fcn.0040443d
lea eax, [ebp - 0x57c]
mov dword [esp], str.Content_Type:_application_json_charsetutf_8
push eax
call fcn.004037c8
push eax
call fcn.0040443d
lea eax, [ebp - 0x57c]
push eax
call fcn.0040443d
push dword [ebp - 0x4b4]
lea eax, [ebp - 0x57c]
push eax
call fcn.00403964
add esp, 0x18
lea eax, [ebp - 0x484]
push eax
lea ecx, [ebp - 0x58c]
call fcn.00404e02
push eax
lea ecx, [ebp - 0x44c]
mov byte [ebp - 4], 6
call fcn.00401a6d
push ebx
push esi
lea ecx, [ebp - 0x484]
mov byte [ebp - 4], 5
call fcn.004010e4
push 6
push esi
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x4b4], eax
cmp eax, ebx
jge 0x40508f
or dword [ebp - 0x430], 0xffffffff
push str.open_socket_failed.
call fcn.00455b50
pop ecx
push eax
push str.open_socket_failed.
lea ecx, [ebp - 0x42c]
call fcn.00401380
mov eax, dword [ebp - 0x430]
mov dword [edi], eax
lea eax, [ebp - 0x42c]
push eax
lea ecx, [edi + 4]
call fcn.004013f5
mov dword [ebp - 0x4c0], esi
jmp 0x40540f
push 0x10
lea eax, [ebp - 0x494]
push ebx
push eax
call fcn.004568a0
add esp, 0xc
push 2
pop eax
mov word [ebp - 0x494], ax
mov eax, dword [ebp - 0x4b8]
add eax, 0x1c
cmp dword [eax + 0x14], 0x10
jb 0x4050bc
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x490], eax
mov eax, dword [ebp - 0x4b8]
movzx eax, word [eax + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x492], ax
push 0x10
lea eax, [ebp - 0x494]
push eax
push dword [ebp - 0x4b4]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x405139
or dword [ebp - 0x430], 0xffffffff
push str.connect___failed
call fcn.00455b50
pop ecx
push eax
push str.connect___failed
lea ecx, [ebp - 0x42c]
call fcn.00401380
mov eax, dword [ebp - 0x430]
mov dword [edi], eax
lea eax, [ebp - 0x42c]
push eax
lea ecx, [edi + 4]
call fcn.004013f5
jmp 0x405084
cmp dword [ebp - 0x438], 0x10
mov eax, dword [ebp - 0x44c]
jae 0x40514e
lea eax, [ebp - 0x44c]
mov ecx, dword [ebp - 0x43c]
push ebx
push ecx
push eax
push dword [ebp - 0x4b4]
mov dword [ebp - 0x4bc], ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebp - 0x4bc]
je 0x4051a5
or dword [ebp - 0x430], 0xffffffff
push str.send___sent_a_different_number_of_bytes_than_expected
call fcn.00455b50
pop ecx
push eax
push str.send___sent_a_different_number_of_bytes_than_expected
lea ecx, [ebp - 0x42c]
call fcn.00401380
push dword [ebp - 0x4b4]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x40511d
push 0x4736e5
call fcn.00455b50
pop ecx
push eax
push 0x4736e5
lea ecx, [ebp - 0x468]
call fcn.00401380
push ebx
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x4b4]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x4b8], eax
cmp eax, ebx
jle 0x405240
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x4b0]
call fcn.00401436
push dword [ebp - 0x4b8]
lea ecx, [ebp - 0x484]
push ebx
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00404457
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 8
call fcn.004035ac
push ebx
push esi
lea ecx, [ebp - 0x484]
call fcn.004010e4
push ebx
push esi
lea ecx, [ebp - 0x4b0]
mov byte [ebp - 4], 5
call fcn.004010e4
cmp dword [ebp - 0x4b8], 0x400
je 0x4051c1
push dword [ebp - 0x4b4]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x4d0], ebx
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4c8], ebx
push 0x4737b8
lea ecx, [ebp - 0x484]
mov byte [ebp - 4], 9
call fcn.00401436
push ebx
lea eax, [ebp - 0x4d0]
push eax
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x468]
push eax
mov byte [ebp - 4], 0xa
call fcn.004058d2
add esp, 0x10
push ebx
push esi
lea ecx, [ebp - 0x484]
mov byte [ebp - 4], 9
call fcn.004010e4
mov eax, dword [ebp - 0x4cc]
sub eax, dword [ebp - 0x4d0]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jne 0x405310
or dword [ebp - 0x430], 0xffffffff
push str.response_data_is_wrong
call fcn.00455b50
pop ecx
push eax
push str.response_data_is_wrong
lea ecx, [ebp - 0x42c]
call fcn.00401380
mov eax, dword [ebp - 0x430]
mov dword [edi], eax
lea eax, [ebp - 0x42c]
push eax
lea ecx, [edi + 4]
call fcn.004013f5
mov dword [ebp - 0x4c0], esi
jmp 0x405404
mov dword [ebp - 0x4e0], ebx
mov dword [ebp - 0x4dc], ebx
mov dword [ebp - 0x4d8], ebx
push 0x47379c
lea ecx, [ebp - 0x484]
mov byte [ebp - 4], 0xb
call fcn.00401436
push ebx
lea eax, [ebp - 0x4e0]
push eax
lea eax, [ebp - 0x484]
push eax
push dword [ebp - 0x4d0]
mov byte [ebp - 4], 0xc
call fcn.004058d2
add esp, 0x10
push ebx
push esi
lea ecx, [ebp - 0x484]
mov byte [ebp - 4], 0xb
call fcn.004010e4
mov eax, dword [ebp - 0x4dc]
sub eax, dword [ebp - 0x4e0]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, esi
jbe 0x40539b
mov eax, dword [ebp - 0x4e0]
add eax, ecx
cmp dword [eax + 0x14], 0x10
jb 0x40538e
mov eax, dword [eax]
push eax
call fcn.00456c9a
pop ecx
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0xc8
jne 0x4053dc
lea eax, [ebp - 0x410]
push str._r_n_r_n
push eax
call fcn.00456920
add eax, 4
push eax
mov dword [ebp - 0x4bc], eax
call fcn.00455b50
add esp, 0xc
push eax
push dword [ebp - 0x4bc]
lea ecx, [ebp - 0x42c]
call fcn.00401380
mov eax, dword [ebp - 0x430]
mov dword [edi], eax
lea eax, [ebp - 0x42c]
push eax
lea ecx, [edi + 4]
call fcn.004013f5
lea ecx, [ebp - 0x4e0]
mov dword [ebp - 0x4c0], esi
call fcn.00404e1c
lea ecx, [ebp - 0x4d0]
call fcn.00404e1c
lea ecx, [ebp - 0x58c]
mov byte [ebp - 4], 4
call fcn.004032c8
lea ecx, [ebp - 0x634]
mov byte [ebp - 4], 3
call fcn.004032c8
push ebx
push esi
lea ecx, [ebp - 0x42c]
call fcn.004010e4
push ebx
push esi
lea ecx, [ebp - 0x468]
call fcn.004010e4
push ebx
push esi
lea ecx, [ebp - 0x44c]
call fcn.004010e4
mov eax, edi
call fcn.0045685c
ret 0xc