Function at 0x442390
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d3e4
mov eax, dword fs:[0]
push eax
sub esp, 0x558
mov eax, dword [0x54f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x534], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebx + 0x10]
call fcn.0043d1b0
mov ax, word [ebp + 0x14]
mov ecx, ebx
mov word [ebx + 0xc], ax
call fcn.0043e240
or edi, 0xffffffff
cmp dword [ebx + 8], edi
jne 0x44241e
push edi
push str.Invalid_socket__d
push 0x50e
push str.License::SendServerCmd
push 0x525dcc
push 0
push 5
push 6
call sub.PHDPFuncs.dll_LogPrintf
add esp, 0x20
lea ebx, [edi - 5]
jmp 0x442ac9
push 0
call fcn.00453a90
push eax
call fcn.00452fd9
add esp, 8
xor esi, esi
call fcn.00452fb8
mov word [ebp + esi*2 - 0x20], ax
inc esi
cmp esi, 8
jl 0x442430
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x54c]
call fcn.00443950
mov byte [ebp - 4], 4
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x442b62
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x524], eax
lea eax, [ebp - 0x524]
mov byte [ebp - 4], 5
push str.CMDGETVERSION
push eax
call fcn.00416010
push 0x400
lea eax, [ebp - 0x520]
push 0
push eax
call fcn.00446190
mov esi, dword [ebp - 0x524]
lea edx, [ebp - 0x520]
mov ecx, esi
add esp, 0x14
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4424b0
lea ecx, [ebp - 0x520]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4424c6
push 0
sub ecx, edx
lea eax, [ebp - 0x520]
push ecx
push eax
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x44252b
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0xffffffffffffffff
mov dword [ebx + 8], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Send_failed_on_socket__d__d
push 0x528
push str.License::SendServerCmd
push 0x525dcc
push 0
push 5
push 6
call sub.PHDPFuncs.dll_LogPrintf
add esp, 0x24
mov ebx, 0xfffffffa
jmp 0x442aa3
push 0x400
lea eax, [ebp - 0x520]
push 0
push eax
call fcn.00446190
add esp, 0xc
lea eax, [ebp - 0x520]
push 0
push 0x3ff
push eax
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x44259f
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 8], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Receive_failed_on_socket__d
push 0x532
push str.License::SendServerCmd
push 0x525dcc
push 0
push 5
push 6
call sub.PHDPFuncs.dll_LogPrintf
add esp, 0x20
mov ebx, 0xfffffffa
jmp 0x442aa3
lea ecx, [ebp - 0x520]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4425a8
sub ecx, edx
lea eax, [ebp - 0x520]
push ecx
push eax
lea ecx, [ebp - 0x524]
call fcn.004165b0
mov esi, dword [ebp - 0x524]
push str.BAD_CMD
push esi
call fcn.0045372d
add esp, 8
test eax, eax
je 0x442a7c
push str.2.7.2
push esi
call fcn.0045372d
shr eax, 0x1f
add esp, 8
test al, al
jne 0x442a7c
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x442b6c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x52c], eax
mov eax, dword [ebp + 0x1c]
mov byte [ebp - 4], 6
cmp dword [eax - 0xc], 0
jg 0x442669
push 0
push 0
lea eax, [ebp - 0x528]
mov ecx, ebx
push eax
call fcn.004406e0
push dword [eax]
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 7
call fcn.004255b0
mov edx, dword [ebp - 0x528]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x442678
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x442678
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x52c]
call fcn.0043d1b0
push 0x80
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x54c]
call fcn.00443a00
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x52c]
lea eax, [ebp - 0x120]
push eax
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x524]
push str._s_s_s_s
push eax
call fcn.00416010
push 0x400
lea eax, [ebp - 0x520]
push 0
push eax
call fcn.00446190
mov esi, dword [ebp - 0x524]
lea edx, [ebp - 0x520]
mov ecx, esi
add esp, 0x24
sub edx, ecx
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4426e0
lea ecx, [ebp - 0x520]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4426f6
push 0
sub ecx, edx
lea eax, [ebp - 0x520]
push ecx
push eax
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x442737
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 8], 0xffffffff
mov ebx, 0x550
mov dword [ebp - 0x52c], str.Send_failed_on_socket__d
jmp 0x442787
push 0x400
lea eax, [ebp - 0x520]
push 0
push eax
call fcn.00446190
add esp, 0xc
lea eax, [ebp - 0x520]
push 0
push 0x3ff
push eax
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x4427b7
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 8], 0xffffffff
mov ebx, 0x55a
mov dword [ebp - 0x52c], str.Receive_failed_on_socket__d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp - 0x52c]
push ebx
push str.License::SendServerCmd
push 0x525dcc
push 0
push 5
push 6
call sub.PHDPFuncs.dll_LogPrintf
add esp, 0x20
mov ebx, 0xfffffffa
jmp 0x442a5c
lea ecx, [ebp - 0x520]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4427c0
sub ecx, edx
lea eax, [ebp - 0x520]
push ecx
push eax
lea ecx, [ebp - 0x524]
call fcn.004165b0
push 2
lea eax, [ebp - 0x528]
push eax
lea ecx, [ebp - 0x524]
call fcn.004416c0
push 0x51cb60
push dword [eax]
call fcn.0045372d
add esp, 8
lea ecx, [ebp - 0x528]
mov esi, eax
call fcn.00401b10
test esi, esi
je 0x442842
push str.Bad_cmd_returned_from_license_server
push 0x562
push str.License::SendServerCmd
push 0x525dcc
push 0
push 5
push 6
call sub.PHDPFuncs.dll_LogPrintf
mov esi, dword [ebp - 0x524]
add esp, 0x1c
mov ebx, 0xfffffffb
jmp 0x442a5c
mov esi, dword [ebp - 0x524]
cmp dword [esi - 0xc], 2
jle 0x442a48
lea ecx, [ebp - 0x554]
call fcn.00443990
lea ecx, [ebp - 0x53c]
mov byte [ebp - 4], 8
call fcn.00443990
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x524]
add eax, 0xfffffffd
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x528]
push eax
call fcn.00442280
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00425590
push eax
lea ecx, [ebp - 0x544]
call fcn.00443920
lea ecx, [ebp - 0x528]
mov byte [ebp - 4], 0xc
call fcn.00401b10
push 0x10
push dword [ebp - 0x548]
lea ecx, [ebp - 0x564]
call fcn.00465d40
push dword [ebp - 0x538]
lea ecx, [ebp - 0x564]
mov byte [ebp - 4], 0xd
push dword [ebp - 0x540]
call fcn.00465f90
push 0x80
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x53c]
call fcn.00443a00
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x442b76
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x528], eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x528]
call fcn.00416380
test al, al
jne 0x442950
lea ecx, [ebp - 0xa0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442934
sub ecx, edx
lea eax, [ebp - 0xa0]
push ecx
push eax
lea ecx, [ebp - 0x528]
call fcn.004165b0
push 8
lea eax, [ebp - 0x530]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x528]
call fcn.004416c0
push str.81537A29
push dword [eax]
call fcn.00453829
add esp, 8
lea ecx, [ebp - 0x530]
mov ebx, eax
call fcn.00401b10
lea ecx, [ebp - 0x528]
mov byte [ebp - 4], 0xd
call fcn.00401b10
test ebx, ebx
je 0x4429ec
push str.Decryption_failure_from_license_server
push 0x574
push str.License::SendServerCmd
push 0x525dcc
push 0
push 5
push 6
call sub.PHDPFuncs.dll_LogPrintf
add esp, 0x1c
lea ecx, [ebp - 0x564]
call fcn.0043d180
lea ecx, [ebp - 0x544]
call fcn.004439b0
lea ecx, [ebp - 0x53c]
call fcn.004439b0
lea ecx, [ebp - 0x554]
call fcn.004439b0
mov ebx, 0xfffffff9
jmp 0x442a5c
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x530]
call fcn.00403420
push dword [eax]
mov ecx, dword [ebp - 0x534]
mov byte [ebp - 4], 0x11
call fcn.004255b0
lea ecx, [ebp - 0x530]
call fcn.00401b10
lea ecx, [ebp - 0x564]
call fcn.0043d180
lea ecx, [ebp - 0x544]
call fcn.004439b0
lea ecx, [ebp - 0x53c]
call fcn.004439b0
lea ecx, [ebp - 0x554]
call fcn.004439b0
jmp 0x442a5a
mov ecx, dword [ebp - 0x534]
lea eax, [ebp - 0x524]
push eax
call fcn.0043d1b0
xor ebx, ebx
lea edx, [edi - 0x10]
mov byte [ebp - 4], 5
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x442aa3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x442aa3
push str.Bad_cmd_returned_from_license_server
push 0x53a
push str.License::SendServerCmd
push 0x525dcc
push 0
push 5
push 6
call sub.PHDPFuncs.dll_LogPrintf
add esp, 0x1c
mov ebx, 0xfffffff9
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x442abe
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x54c]
call fcn.004439b0
mov edx, dword [ebp + 8]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x442ae7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x442b05
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x442b23
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x442b42
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443e26
mov esp, ebp
pop ebp
ret 0x18
push 0x80004005
call fcn.00404320
push 0x80004005
call fcn.00404320
push 0x80004005
call fcn.00404320
int3