Function at 0x404220
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x138
mov eax, dword [0x6a7c78]
xor eax, esp
mov dword [esp + 0x134], eax
mov eax, dword [section..data]
push ebp
mov ebp, dword [esp + 0x140]
push eax
push str.Initial_logging_level__d_n
push 4
call fcn.00403280
mov ecx, dword [str.1.7.0_unknown_build_hash]
push ecx
push str.Libwebsockets_version:__s_n
push 4
call fcn.00403280
push str.IPV6_not_compiled_in_n
push 4
call fcn.00403280
push str.libev_support_not_compiled_in_n
push 4
call fcn.00403280
add esp, 0x28
call fcn.00405600
test eax, eax
je 0x40429d
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.004adf6a
add esp, 0x138
ret
push ebx
push esi
push 0x350
call fcn.00405af0
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
jne 0x4042dd
push str.No_memory_for_websocket_context_n
push 1
call fcn.00403280
add esp, 8
pop esi
pop ebx
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.004adf6a
add esp, 0x138
ret
mov dword [esi + 0x2f8], 0x7530
cmp dword [ebp + 0x54], ebx
je 0x4042f9
mov dx, word [ebp + 0x54]
mov word [esi + 0x348], dx
jmp 0x404305
mov eax, 1
mov word [esi + 0x348], ax
cmp word [esi + 0x348], 1
jle 0x40431b
mov ecx, 1
mov word [esi + 0x348], cx
mov edx, dword [ebp + 8]
mov dword [esi + 0x168], edx
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x160], eax
mov ecx, dword [ebp]
mov dword [esi + 0x2fc], ecx
mov dword [esi + 0x310], ebx
mov byte [esi + 0x178], bl
mov edx, dword [ebp + 0x38]
mov dword [esi + 0x314], edx
mov eax, dword [ebp + 4]
mov dword [esi + 0x15c], eax
mov ecx, dword [ebp + 0x40]
mov dword [esi + 0x32c], ecx
mov edx, dword [ebp + 0x48]
mov dword [esi + 0x334], edx
mov eax, dword [ebp + 0x44]
mov dword [esi + 0x330], eax
mov eax, dword [ebp + 0x5c]
cmp eax, ebx
je 0x40437e
mov dword [esi + 0x31c], eax
jmp 0x404388
mov dword [esi + 0x31c], 0x14
movzx eax, word [ebp + 0x50]
cmp ax, bx
je 0x40439a
mov word [esi + 0x344], ax
jmp 0x4043a6
mov ecx, 0x400
mov word [esi + 0x344], cx
movzx eax, word [ebp + 0x52]
cmp ax, bx
je 0x4043b8
mov word [esi + 0x346], ax
jmp 0x4043c4
mov edx, 0x10
mov word [esi + 0x346], dx
xor eax, eax
cmp ax, word [esi + 0x348]
push edi
mov dword [esp + 0x10], ebx
jge 0x40448d
lea edi, [esi + 0x30]
jmp 0x4043e0
push 0x1000
call fcn.00405af0
add esp, 4
mov dword [edi + 0x1c], eax
cmp eax, ebx
je 0x4044fb
movsx ecx, word [esi + 0x344]
movsx edx, word [esi + 0x346]
imul ecx, edx
push ecx
push ebx
call fcn.00405ae0
add esp, 8
mov dword [edi - 4], eax
cmp eax, ebx
je 0x4046a6
movsx eax, word [esi + 0x346]
imul eax, eax, 0xc80
push eax
call fcn.00405af0
mov dword [edi], eax
xor ecx, ecx
add esp, 4
xor eax, eax
cmp cx, word [esi + 0x346]
jge 0x40446a
movsx edx, word [esi + 0x344]
mov ebx, dword [edi]
imul edx, eax
add edx, dword [edi - 4]
inc eax
mov dword [ebx + ecx + 4], edx
movsx edx, word [esi + 0x346]
add ecx, 0xc80
cmp eax, edx
jl 0x404443
xor ebx, ebx
cmp dword [edi], ebx
je 0x4046a6
mov eax, dword [esp + 0x10]
movsx ecx, word [esi + 0x348]
inc eax
add edi, 0x40
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4043e0
mov eax, dword [ebp + 0x58]
cmp eax, ebx
jne 0x4044a4
mov eax, dword [esi + 0x2f8]
movsx ecx, word [esi + 0x348]
cdq
idiv ecx
mov edx, eax
mov dword [esi + 0x318], eax
movsx eax, word [esi + 0x348]
push edx
push eax
push str._Threads:__d_each__d_fds_n
push 4
call fcn.00403280
push 0x130
lea ecx, [esp + 0x28]
push ebx
push ecx
call sub.MSVCR90.dll_memset
add esp, 0x1c
mov dword [esp + 0xdc], esi
cmp dword [ebp + 0x48], ebx
jne 0x404511
cmp dword [ebp + 0x40], ebx
jle 0x404511
push str.info__ka_interval_cant_be_0_if_ka_time_used_n
push 1
call fcn.00403280
add esp, 8
xor eax, eax
jmp 0x40467d
push str.OOM_n
push 1
call fcn.00403280
add esp, 8
xor eax, eax
jmp 0x40467d
movsx eax, word [esi + 0x348]
imul eax, dword [esi + 0x318]
add eax, eax
add eax, eax
add eax, eax
push eax
call fcn.00405af0
add esp, 4
mov dword [esi + 0x1c], eax
cmp eax, ebx
jne 0x40455b
mov edx, dword [esi + 0x2f8]
push edx
push str.OOM_allocating__d_fds_n
push 1
call fcn.00403280
add esp, 0xc
push esi
call fcn.00404070
add esp, 4
xor eax, eax
jmp 0x40467d
push ebp
push esi
call fcn.004059d0
add esp, 8
test eax, eax
jne 0x4046a6
push esi
push ebp
call fcn.00406940
mov eax, dword [ebp + 0x3c]
push 0x130
push str._mem:_per_conn:_________5u_bytes__protocol_rx_buf_n
push 4
mov dword [esi + 0x164], eax
call fcn.00403280
mov ecx, dword [str.unknown]
mov dword [esi + 0x278], ecx
mov edx, dword [0x5da760]
push ebp
push esi
mov dword [esi + 0x27c], edx
call fcn.004093f0
add esp, 0x1c
cmp dword [ebp + 0x28], ebx
je 0x4045c7
mov eax, dword [ebp + 0x2c]
cmp eax, ebx
je 0x4045c2
mov dword [esi + 0x310], eax
mov eax, dword [ebp + 0x28]
jmp 0x4045d9
push str.http_proxy
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x4045e3
push eax
push esi
call fcn.00403a10
add esp, 8
push esi
push ebp
call fcn.00405cb0
add esp, 8
test eax, eax
jne 0x4046a6
push esi
push ebp
call fcn.00406110
add esp, 8
test eax, eax
jne 0x4046a6
push esi
push ebp
call fcn.00408480
add esp, 8
test eax, eax
jne 0x4046a6
push ebp
call fcn.004055f0
mov dword [esi + 0x328], ebx
mov eax, dword [ebp + 8]
add esp, 4
cmp dword [eax + 4], ebx
je 0x404664
mov ecx, dword [esi + 0x328]
push ebx
push ebx
push ebx
lea ecx, [ecx + ecx*2]
mov eax, dword [eax + ecx*8 + 4]
lea edx, [esp + 0x20]
push 0x1b
push edx
call eax
inc dword [esi + 0x328]
mov ecx, dword [esi + 0x328]
mov eax, dword [ebp + 8]
lea ecx, [ecx + ecx*2]
add esp, 0x14
cmp dword [eax + ecx*8 + 4], ebx
jne 0x404630
cmp dword [ebp], 0xffffffff
push ebx
push ebx
je 0x404696
push ebx
push ebx
push esi
call fcn.00406c70
add esp, 0x14
test eax, eax
jl 0x4046a6
mov eax, esi
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
call fcn.004adf6a
add esp, 0x138
ret
push 1
push ebx
push esi
call fcn.00406c70
add esp, 0x14
test eax, eax
jge 0x40467b
push esi
call fcn.00404070
add esp, 4
xor eax, eax
jmp 0x40467d