Function at 0x41c110
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9326
mov eax, dword fs:[0]
push eax
sub esp, 0x530
mov eax, dword [0x535820]
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 ebx, dword [ebp + 8]
push 0x48
mov dword [ebp - 4], 0
call fcn.0041e86d
add esp, 4
mov dword [ebp - 0x538], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x41c1b0
mov ecx, eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x40], 0
call fcn.00415c10
mov edi, eax
jmp 0x41c1b2
xor edi, edi
push 0x400
lea eax, [ebp - 0x534]
push 0
push eax
mov byte [ebp - 4], 0
call fcn.00423960
add esp, 0xc
xorps xmm0, xmm0
push 0x100
lea eax, [ebp - 0x134]
push 0
push eax
movq qword [ebp - 0x34], xmm0
movq qword [ebp - 0x2c], xmm0
movq qword [ebp - 0x24], xmm0
movq qword [ebp - 0x1c], xmm0
call fcn.00423960
add esp, 0xc
cmp dword [ebp + 0x20], 0x10
push dword [ebp + 0x1c]
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x534]
push 0x400
push eax
call fcn.0041ee20
add esp, 0x10
lea eax, [ebp - 0x534]
push eax
mov ecx, edi
call fcn.00415c80
mov ecx, edi
call fcn.00416130
cmp al, 1
jne 0x41c419
cmp dword [edi + 0x24], 0
je 0x41c30c
cmp dword [edi + 0x28], 0
je 0x41c30c
push 4
push 0
push str._r_n_r_n
lea ecx, [ebp + 0xc]
call fcn.00412dc0
mov edx, eax
cmp edx, 0xffffffff
je 0x41c425
lea ecx, [edx + 0xc]
cmp dword [ebp + 0x1c], ecx
jl 0x41c425
cmp dword [ebp + 0x20], 0x10
lea ecx, [ebp + 0xc]
cmovae ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx + 4]
mov dword [ebp - 0x53c], eax
mov eax, dword [ecx + edx + 8]
mov dword [ebp - 0x538], eax
lea eax, [ebp - 0x53c]
push eax
mov ecx, edi
call fcn.00416730
test al, al
je 0x41c425
push ecx
lea eax, [ebp - 0x34]
push eax
push 0x10
lea eax, [edi + 0x2c]
push eax
call fcn.00418440
mov esi, eax
test esi, esi
jne 0x41c42a
push 6
mov ecx, edi
call fcn.00416280
push 1
mov ecx, edi
mov esi, eax
call fcn.00416280
cmp dword [ebx + 0x10], 0x5e4a
push esi
push eax
mov ecx, str.wss:__
mov eax, str.ws:__
cmovne eax, ecx
push eax
lea eax, [ebp - 0x134]
push str.HTTP_1.1_101_WebSocket_Protocol_Handshake_r_nUpgrade:_WebSocket_r_nConnection:_Upgrade_r_nSec_WebSocket_Location:__s_s__r_nSec_WebSocket_Origin:__s_r_n_r_n
push eax
call fcn.0041c710
add esp, 0x14
mov dword [ebx + 0x18], 1
jmp 0x41c349
push 8
mov ecx, edi
call fcn.00416280
push ecx
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.00418250
mov esi, eax
test esi, esi
jne 0x41c42a
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x134]
push str.HTTP_1.1_101_Switching_Protocols_r_nUpgrade:_websocket_r_nConnection:_Upgrade_r_nSec_WebSocket_Accept:__s_r_n_r_n
push eax
call fcn.0041c710
add esp, 0xc
mov dword [ebx + 0x18], 2
mov edx, dword [ebx + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_send]
lea ecx, [ebp - 0x134]
test edx, edx
jne 0x41c38a
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c360
push 0
sub ecx, edx
push ecx
lea eax, [ebp - 0x134]
push eax
push dword [ebx + 4]
call esi
cmp eax, 0xffffffff
jne 0x41c3c3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
jmp 0x41c42a
lea esi, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c390
sub ecx, esi
push ecx
lea eax, [ebp - 0x134]
push eax
push edx
call fcn.004b6070
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x41c3bd
push 0
push esi
call fcn.0043a7d0
add esp, 8
jmp 0x41c42a
mov esi, dword [sym.imp.WS2_32.dll_send]
cmp dword [ebx + 0x18], 1
jne 0x41c40d
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x41c3eb
push eax
push 0x10
lea eax, [ebp - 0x34]
push eax
push dword [ebx + 4]
call esi
cmp eax, 0xffffffff
jne 0x41c40d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
jmp 0x41c42a
push 0x10
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.004b6070
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x41c40d
push 0
push esi
call fcn.0043a7d0
add esp, 8
jmp 0x41c42a
push ecx
mov ecx, edi
call fcn.0041c460
xor esi, esi
jmp 0x41c42a
test edi, edi
je 0x41c425
push ecx
mov ecx, edi
call fcn.0041c460
mov esi, 0x100e
cmp dword [ebp + 0x20], 0x10
jb 0x41c43b
push dword [ebp + 0xc]
call fcn.0041e60d
add esp, 4
mov eax, esi
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.0041d8e4
mov esp, ebp
pop ebp
ret 0x1c