Function at 0x422a50
Capabilities:
Get hostname

Disassembly:
sub esp, 0x10
mov eax, dword [0x53de10]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [0x544084]
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
push eax
push str.Initial_logging_level__d_n
mov esi, 4
mov dword [esp + 0x20], ebp
call fcn.004214d0
push str.2.0.0_unknown_build_hash
push str.Libwebsockets_version:__s_n
call fcn.004214d0
push str.IPV6_not_compiled_in_n
call fcn.004214d0
add esp, 0x14
push str.libev_support_not_compiled_in_n
call fcn.004214d0
add esp, 4
push str.libuv_support_not_compiled_in_n
call fcn.004214d0
add esp, 4
call fcn.00422230
test eax, eax
jne 0x422b22
push 0x238
push eax
call dword [0x543a94]
mov edi, eax
add esp, 8
test edi, edi
je 0x422b10
push 0x238
push 0
push edi
call fcn.004bbbe0
add esp, 0xc
push 0
call fcn.004bb0d2
add esp, 4
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov dword [edi + 0x1f8], 0x7530
cmp dword [ebp + 0x54], 0
je 0x422b37
mov cx, word [ebp + 0x54]
mov word [edi + 0x22c], cx
jmp 0x422b40
push str.No_memory_for_websocket_context_n
mov esi, 1
call fcn.004214d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.004b883d
add esp, 0x10
ret
mov word [edi + 0x22c], 1
mov eax, 1
cmp word [edi + 0x22c], ax
jle 0x422b55
mov word [edi + 0x22c], ax
mov edx, dword [ebp + 0x10]
mov dword [edi + 0x16c], edx
mov eax, dword [ebp + 0x38]
mov dword [edi + 0x214], eax
mov eax, dword [ebp + 0x5c]
test eax, eax
je 0x422b76
mov dword [edi + 0x21c], eax
jmp 0x422b80
mov dword [edi + 0x21c], 0x14
movzx eax, word [ebp + 0x50]
test ax, ax
je 0x422b92
mov word [edi + 0x228], ax
jmp 0x422b9b
mov word [edi + 0x228], 0x400
movzx eax, word [ebp + 0x52]
test ax, ax
je 0x422bad
mov word [edi + 0x22a], ax
jmp 0x422bb6
mov word [edi + 0x22a], 0x10
cmp word [edi + 0x22c], 0
mov dword [esp + 0x14], 0
jle 0x422cc3
lea esi, [edi + 0x34]
push 0x1000
push 0
call dword [0x543a94]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x422bf5
push 0x1000
push 0
push ebx
call fcn.004bbbe0
add esp, 0xc
test ebx, ebx
mov dword [esi + 0x20], ebx
je 0x422d30
mov cl, byte [esp + 0x14]
mov dword [esi], edi
mov byte [esi + 0x2e], cl
movsx eax, word [edi + 0x22a]
movsx edx, word [edi + 0x228]
imul eax, edx
push eax
push 0
call dword [0x543a94]
add esp, 8
test eax, eax
mov dword [esi + 4], eax
je 0x422da7
movsx ebx, word [edi + 0x22a]
imul ebx, ebx, 0xca0
push ebx
push 0
call dword [0x543a94]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x422c5c
push ebx
push 0
push ebp
call fcn.004bbbe0
add esp, 0xc
xor eax, eax
mov dword [esi + 8], ebp
cmp word [edi + 0x22a], ax
jle 0x422c98
xor ecx, ecx
lea esp, [esp]
movsx edx, word [edi + 0x228]
mov ebx, dword [esi + 8]
imul edx, eax
add edx, dword [esi + 4]
add eax, 1
mov dword [ecx + ebx + 4], edx
movsx edx, word [edi + 0x22a]
add ecx, 0xca0
cmp eax, edx
jl 0x422c70
cmp dword [esi + 8], 0
je 0x422da7
mov eax, dword [esp + 0x14]
movsx ecx, word [edi + 0x22c]
add eax, 1
add esi, 0x40
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x422bcf
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 0x58]
test eax, eax
jne 0x422cda
mov eax, dword [edi + 0x1f8]
movsx ecx, word [edi + 0x22c]
cdq
idiv ecx
mov edx, eax
mov dword [edi + 0x218], eax
movsx eax, word [edi + 0x22c]
push edx
push eax
push str._Threads:__d_each__d_fds_n
mov esi, 4
call fcn.004214d0
add esp, 0xc
cmp dword [ebp + 0x48], 0
jne 0x422d57
cmp dword [ebp + 0x40], 0
jle 0x422d57
push str.info__ka_interval_cant_be_0_if_ka_time_used_n
mov esi, 1
call fcn.004214d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.004b883d
add esp, 0x10
ret
push str.OOM_n
mov esi, 1
call fcn.004214d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.004b883d
add esp, 0x10
ret
movsx esi, word [edi + 0x22c]
imul esi, dword [edi + 0x218]
add esi, esi
add esi, esi
add esi, esi
push esi
push 0
call dword [0x543a94]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x422d89
push esi
push 0
push ebx
call fcn.004bbbe0
add esp, 0xc
test ebx, ebx
mov dword [edi + 0x24], ebx
jne 0x422dc3
mov ecx, dword [edi + 0x1f8]
push ecx
push str.OOM_allocating__d_fds_n
lea esi, [ebx + 1]
call fcn.004214d0
add esp, 8
mov ecx, edi
call fcn.00422ef0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.004b883d
add esp, 0x10
ret
mov eax, dword [ebp + 0x7c]
test eax, eax
je 0x422de7
mov dword [edi + 0x174], eax
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x422dd3
sub eax, edx
mov word [edi + 0x232], ax
jmp 0x422dfa
mov dword [edi + 0x174], str.libwebsockets
mov word [edi + 0x232], 0xd
mov ebx, edi
call fcn.004224c0
test eax, eax
jne 0x422da7
push str._Compiled_with_OpenSSL_support_n
lea esi, [eax + 4]
call fcn.004214d0
add esp, 4
test dword [ebp + 0x38], 0x1000
jne 0x422e2d
push str._SSL_disabled:_no_LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT_n
call fcn.004214d0
add esp, 4
jmp 0x422e32
call fcn.00426760
mov edx, dword [ebp + 0x3c]
mov dword [edi + 0x170], edx
test dword [ebp + 0x38], 0x2000
jne 0x422e76
mov eax, ebp
mov ecx, edi
call fcn.00422800
test eax, eax
jne 0x422e76
push str.Failed_to_create_default_vhost_n
lea esi, [eax + 1]
call fcn.004214d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.004b883d
add esp, 0x10
ret
push 0x170
push str._mem:_per_conn:_________5u_bytes__protocol_rx_buf_n
mov esi, 4
call fcn.004214d0
mov eax, dword [str.unknown]
lea esi, [edi + 0x178]
mov dword [esi], eax
mov ecx, dword [0x5322f0]
add esp, 8
mov dword [esi + 4], ecx
test byte [ebp + 0x38], 4
jne 0x422ec5
push 0x7f
push esi
call dword [sym.imp.WS2_32.dll_gethostname]
push esi
push str._canonical_hostname___s_n
mov esi, 4
call fcn.004214d0
add esp, 8
mov edx, dword [ebp + 0x34]
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x200], edx
mov eax, dword [ebp + 0x30]
mov dword [edi + 0x204], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b883d
add esp, 0x10
ret