Function at 0x4b28f0
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b0
mov eax, dword [0x53273c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x544a0c], 0
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x9a4], eax
jne 0x4b295f
lea eax, [ebp - 0x994]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4b2955
push str.WSAStartup_failed
call fcn.004afb30
add esp, 4
pop edi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ceaf9
mov esp, ebp
pop ebp
ret
mov dword [0x544a0c], 1
cmp dword [ebx + 0x45c], 0
jne 0x4b2940
push esi
push 0x544a68
push ebx
mov dword [ebp - 0x9a8], 2
call fcn.004b0910
add esp, 8
test eax, eax
je 0x4b29c3
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4b298e
mov eax, dword [ebx]
push eax
push str.Bad_LOCAL_MGR___s
call fcn.004afb30
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x9a8]
pop esi
pop edi
mov dword [0x544a0c], 0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ceaf9
mov esp, ebp
pop ebp
ret
push dword [0x531a80]
mov eax, dword [ebx + 8]
mov dword [0x544a84], eax
mov eax, dword [ebx + 0x10]
push 1
push eax
mov dword [0x544a64], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x9a0], esi
test esi, esi
jns 0x4b29fd
push str.socket_...__failed
call fcn.004afb30
add esp, 4
jmp 0x4b299c
movzx eax, word [ebx + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push dword [0x544a84]
mov word [0x544a6a], ax
push 0x544a68
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4b2cca
mov eax, dword [ebx + 0x468]
mov dword [ebp - 0x99c], eax
test eax, eax
jle 0x4b2a71
mov ecx, 6
cmp eax, ecx
cmovg eax, ecx
mov dword [ebp - 0x99c], eax
imul eax, eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [0x544a84]
push 0x544a68
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4b2cca
mov eax, dword [ebx + 0x474]
test eax, eax
jle 0x4b2ac5
mov ecx, 0xa
cmp eax, ecx
cmovg eax, ecx
push eax
push str.Waiting__d_more_seconds_for_license_manager_to_start
mov dword [ebp - 0x998], eax
call fcn.004afb30
imul eax, dword [ebp - 0x998], 0x3e8
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [0x544a84]
push 0x544a68
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4b2cca
push str.Trying_to_start_license_manager_ampl_lic
mov dword [ebp - 0x998], 0
call fcn.004afb30
push eax
call fcn.004d9e2c
push ebx
call fcn.004b3a60
add esp, 0xc
test eax, eax
jne 0x4b2d29
mov eax, dword [ebp - 0x99c]
mov ecx, 1
test eax, eax
push esi
cmovle eax, ecx
mov dword [ebp - 0x99c], eax
call dword [sym.imp.WS2_32.dll_closesocket]
imul eax, dword [ebp - 0x99c], 0x3e8
push eax
mov dword [ebp - 0x99c], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [0x531a80]
push 1
push dword [0x544a64]
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x9a0], esi
test esi, esi
js 0x4b29ee
nop dword [eax + eax]
push dword [0x544a84]
push 0x544a68
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4b2cca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
test esi, esi
jne 0x4b2b7e
call fcn.004d2e71
mov esi, dword [eax]
cmp esi, 0x2743
jg 0x4b2c57
je 0x4b2c3e
mov eax, esi
sub eax, 2
je 0x4b2c34
sub eax, 0x273e
jne 0x4b2c65
mov ecx, dword [ebp - 0x998]
mov eax, str.socket_already_in_use.
inc ecx
mov dword [ebp - 0x998], ecx
cmp ecx, dword [ebx + 0x44c]
jg 0x4b2cb9
cmp dword [ebx + 0x470], 0
je 0x4b2bda
push str.Socket_busy__waiting_1_second_and_trying_again.
call fcn.004afb30
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x9a0]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp - 0x99c]
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [0x531a80]
push 1
push dword [0x544a64]
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x9a0], eax
test esi, esi
jns 0x4b2b50
push str.socket_...__failed
call fcn.004afb30
add esp, 4
jmp 0x4b299c
push dword [ebx + 0x20]
push str.mystery_error_return._nIs_ampl_lic_running_on_the_network_license_server__nIs_port__d_blocked_on_the_client_or_network_license_server__nAre_the_client_and_network_license_server_on_the_same_network__nCan_you_ping_the_network_license_server_from_the_client_
jmp 0x4b2c9f
mov eax, str.unreachable_network_no_route_to_host._nAre_the_client_and_network_license_server_on_the_same_network__nCan_you_ping_the_network_license_server_from_the_client_
push eax
push esi
push str.Could_not_connect_with_license_manager:_error__d:__s
call fcn.004afb30
add esp, 0xc
jmp 0x4b2d29
mov eax, esi
sub eax, 0x274c
je 0x4b2c97
sub eax, 1
je 0x4b2c7e
mov eax, 0x508a40
push eax
push esi
push str.Could_not_connect_with_license_manager:_error__d:__s
call fcn.004afb30
add esp, 0xc
jmp 0x4b2d29
mov eax, str.connection_refused._nIs_ampl_lic_running_on_the_network_license_server__nAre_the_client_and_network_license_server_on_the_same_network__nCan_you_ping_the_network_license_server_from_the_client_
push eax
push esi
push str.Could_not_connect_with_license_manager:_error__d:__s
call fcn.004afb30
add esp, 0xc
jmp 0x4b2d29
push dword [ebx + 0x20]
push str.connection_timed_out._nIs_port__d_blocked_on_the_client_or_network_license_server__nAre_the_client_and_network_license_server_on_the_same_network__nCan_you_ping_the_network_license_server_from_the_client_
lea eax, [ebp - 0x804]
push 0x800
push eax
call fcn.004085b0
lea eax, [ebp - 0x804]
add esp, 0x10
push eax
push esi
push str.Could_not_connect_with_license_manager:_error__d:__s
call fcn.004afb30
add esp, 0xc
jmp 0x4b2d29
mov al, byte [edi]
mov ecx, edi
mov dword [ebp - 0x998], edi
test al, al
je 0x4b2cf3
inc edi
cmp al, 0x2f
je 0x4b2ce5
cmp al, 0x3a
je 0x4b2ce5
cmp al, 0x5c
jne 0x4b2ce7
mov ecx, edi
mov al, byte [edi]
test al, al
jne 0x4b2cd8
mov dword [ebp - 0x998], ecx
push 0x20
push ecx
call fcn.004d0a10
add esp, 8
mov ecx, 0x4fc5ab
test eax, eax
mov edi, 0x508bc0
cmove edi, ecx
call fcn.004b0b60
mov eax, dword [0x544a44]
cmp byte [eax], 0
jne 0x4b2d44
push str.GetUserName_failed
call fcn.004afb30
add esp, 4
mov esi, dword [ebp - 0x9a0]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4b299c
push 0x800
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x99c]
push eax
lea eax, [ebp - 0x9ac]
push eax
lea eax, [ebp - 0x9b0]
push eax
lea eax, [ebp - 0x9a0]
push eax
push edi
push dword [ebp - 0x998]
push dword [ebp - 0x9a4]
push esi
call fcn.004b3d40
mov esi, eax
add esp, 0x28
mov dword [ebp - 0x9a8], esi
test esi, esi
jne 0x4b299c
mov ecx, dword [ebp - 0x9a0]
mov esi, dword [ecx*4 + 0x531a78]
mov ecx, dword [0x521bd4]
mov dword [ebp - 0x9a4], esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b2db0
sub ecx, edx
mov edx, esi
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4b2dc0
lea eax, [ebx + 0x28]
sub edx, esi
mov esi, eax
mov dword [ebp - 0x998], eax
lea edi, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4b2dd7
mov ebx, dword [ebp - 0x99c]
sub esi, edi
lea eax, [esi + edx]
add eax, ecx
lea esi, [ebx + 0x32]
add esi, eax
push esi
call fcn.004d2dc9
mov edi, eax
add esp, 4
test edi, edi
jne 0x4b2e0d
push esi
push str.malloc__ld__failure_in_netlicchk
call fcn.004afb30
add esp, 8
push dword [0x521bd4]
push edi
call fcn.004b2770
push ebx
push dword [ebp - 0x9ac]
mov esi, eax
push esi
call fcn.004cfba0
push dword [ebp - 0x9a4]
lea eax, [ebx + 1]
mov byte [esi + ebx], 0xa
add eax, esi
push eax
call fcn.004b2770
push dword [ebp - 0x9b0]
mov esi, eax
push 0x4fcdb8
push esi
call fcn.004086e0
mov edx, str.._nUsing_license_file__
mov byte [eax + esi], 0x2e
add esp, 0x28
lea ecx, [eax + esi]
sub edx, ecx
mov al, byte [edx + ecx + 1]
inc ecx
mov byte [ecx], al
test al, al
jne 0x4b2e61
push dword [ebp - 0x998]
mov esi, 0x508bfc
push ecx
call fcn.004b2770
add esp, 8
mov byte [eax], 0x22
sub eax, esi
mov cl, byte [esi + 1]
lea esi, [esi + 1]
mov byte [eax + esi], cl
test cl, cl
jne 0x4b2e85
cmp dword [0x544a3c], 0
mov eax, dword [0x544a40]
mov dword [0x521bd4], edi
mov dword [0x544a5c], eax
jne 0x4b2ec2
push fcn.004aff10
mov dword [0x544a3c], 1
call fcn.0044cc00
add esp, 4
push 0x4b3260
push 2
call fcn.004d362b
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, dword [ebp - 0x9a8]
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.004ceaf9
mov esp, ebp
pop ebp
ret