Function at 0x1001eb80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x1004e370]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, str.default
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
add eax, 0x348
mov dword [ebp - 0x74], eax
mov eax, dword [edi + 0xa4]
test eax, eax
mov ebx, dword [edi + 4]
cmovne ecx, eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], ecx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001ebc0
sub ecx, edx
push str.lws_create_vhost
lea eax, [ecx + 0x259]
push eax
call fcn.10020d60
mov esi, eax
add esp, 8
mov dword [ebp - 0x78], esi
test esi, esi
je 0x1001eec8
mov eax, dword [edi + 0xf8]
mov ecx, 0x1004e050
mov edx, dword [ebp - 0x68]
test eax, eax
cmovne ecx, eax
lea eax, [esi + 0x258]
mov dword [esi + 0x188], ecx
mov ecx, edx
mov dword [esi + 0x1c8], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x68], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001ec17
sub ecx, dword [ebp - 0x68]
lea eax, [ecx + 1]
push eax
push edx
lea eax, [esi + 0x258]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
test ebx, ebx
jne 0x1001ec4a
cmp dword [edi + 0xd0], ebx
mov ecx, 0x100458b8
cmovne ecx, ebx
mov dword [ebp - 0x70], ecx
push dword [esi + 0x1c8]
mov eax, dword [ebp - 0x6c]
push 0x100457b4
mov dword [esi + 0x1b0], eax
lea eax, [ebp - 0x64]
push 0x5f
push eax
call fcn.10020380
lea ebx, [ebp - 0x64]
add esp, 0x10
add ebx, eax
mov eax, dword [edi]
test eax, eax
je 0x1001ec8e
push eax
lea eax, [ebp - 5]
push 0x10045978
sub eax, ebx
push eax
push ebx
call fcn.10020380
add esp, 0x10
add ebx, eax
mov ecx, dword [edi + 0x30]
mov edx, ecx
test ecx, ecx
je 0x1001ecb4
test cx, cx
jne 0x1001ecb4
push ecx
lea eax, [ebp - 5]
push 0x1004597c
sub eax, ebx
push eax
push ebx
call fcn.10020380
mov edx, dword [edi + 0x30]
add esp, 0x10
mov eax, dword [edi]
mov ecx, 0x1004a83c
mov ebx, dword [ebp - 0x6c]
test eax, eax
push edx
cmovne ecx, eax
lea eax, [ebp - 0x64]
push ecx
push eax
push str._s_s_d
lea eax, [esi + 0x130]
push eax
lea eax, [ebx + 0x248]
push eax
push ebx
call fcn.1001d820
mov eax, dword [edi + 0x2c]
add esp, 0x1c
mov dword [esi + 0x128], eax
mov eax, dword [edi]
mov dword [esi + 0x1cc], eax
mov eax, 0x14
mov ecx, dword [edi + 0x74]
test ecx, ecx
cmovne eax, ecx
mov dword [esi + 0x240], eax
mov eax, dword [edi + 0xe4]
test eax, eax
jne 0x1001ed19
lea eax, [ebx + 0x1f8]
mov dword [esi + 0x1b8], eax
mov eax, dword [ebp - 0x70]
mov dword [esi + 0x228], 0
test eax, eax
jne 0x1001ed61
mov eax, dword [edi + 0xd0]
cmp dword [eax], 0
je 0x1001ed81
xor edx, edx
nop dword [eax]
lea eax, [edx + 1]
lea ecx, [edx*4]
mov dword [esi + 0x228], eax
mov edx, eax
mov eax, dword [edi + 0xd0]
cmp dword [eax + ecx + 4], 0
jne 0x1001ed40
jmp 0x1001ed81
cmp dword [eax + 4], 0
je 0x1001ed81
xor ecx, ecx
lea edx, [eax + 0x20]
nop dword [eax]
inc ecx
lea edx, [edx + 0x1c]
mov dword [esi + 0x228], ecx
mov eax, dword [edx - 0x1c]
test eax, eax
jne 0x1001ed70
mov eax, dword [edi + 0x90]
mov ebx, 0x1004e070
mov ecx, dword [edi + 0x94]
mov dword [esi + 0x1a8], eax
mov dword [esi + 0x1ac], ecx
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1ec], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x1f0], eax
mov eax, dword [edi + 0x98]
mov dword [esi + 0x220], eax
mov eax, dword [edi + 0xc0]
mov dword [esi + 0x1dc], eax
mov eax, dword [edi + 0xc4]
mov dword [esi + 0x1e0], eax
mov eax, dword [edi + 0xc8]
mov dword [esi + 0x1d0], eax
mov eax, dword [edi + 0xcc]
mov dword [esi + 0x1d4], eax
mov eax, dword [edi + 0xdc]
mov dword [esi + 0x1d8], eax
mov eax, dword [edi + 0xf0]
mov dword [esi + 0x244], eax
mov eax, dword [0x1004e070]
test eax, eax
je 0x1001ee3d
nop dword [eax]
mov cl, byte [eax + 0xd]
lea ebx, [ebx + 4]
test cl, 0xf0
je 0x1001ee37
mov eax, dword [eax + 8]
movzx ecx, cl
shr ecx, 4
push edi
push esi
mov eax, dword [eax + ecx*4 - 4]
call eax
add esp, 8
test eax, eax
jne 0x1001eec8
mov eax, dword [ebx]
test eax, eax
jne 0x1001ee10
mov eax, dword [edi + 0x40]
mov ecx, esi
test eax, eax
jne 0x1001ee4b
mov eax, 5
mov dword [ecx + 0x238], eax
mov ecx, 0xa
mov eax, dword [edi + 0x7c]
test eax, eax
push str.vh_plugin_table
cmovne ecx, eax
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0x23c], ecx
movsx ecx, word [eax + 0x4f4]
mov eax, dword [esi + 0x228]
inc ecx
add eax, ecx
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 2
push ecx
call fcn.10020d60
mov edx, eax
add esp, 8
mov dword [ebp - 0x68], edx
test edx, edx
jne 0x1001eedb
push str.OOM_n
push 1
call fcn.1001dbe0
lea eax, [esi + 0x130]
push eax
push dword [esi + 0x1b0]
call fcn.1001d990
push str.lws_free
push 0
push esi
call fcn.10020d50
add esp, 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10039446
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x70]
mov ebx, dword [esi + 0x228]
test ecx, ecx
jne 0x1001ef1b
xor edx, edx
test ebx, ebx
jle 0x1001ef32
mov ecx, dword [ebp - 0x68]
mov eax, dword [edi + 0xd0]
lea ecx, [ecx + 0x1c]
mov eax, dword [eax + edx*4]
inc edx
movups xmm0, xmmword [eax]
movups xmmword [ecx - 0x1c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx - 0xc], xmm0
mov eax, dword [eax + 0x18]
mov dword [ecx - 4], eax
cmp edx, ebx
jl 0x1001eef1
jmp 0x1001ef32
lea eax, [ebx*8]
sub eax, ebx
shl eax, 2
push eax
push ecx
push edx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x68]
or byte [esi + 0x250], 1
mov dword [esi + 0x1e4], eax
mov eax, dword [esi + 0x228]
push str.same_vh_list
lea eax, [eax + eax*2]
shl eax, 2
push eax
call fcn.10020d60
mov dword [esi + 0x1f4], eax
add esp, 8
mov eax, dword [edi + 0x24]
mov dword [esi + 0x124], eax
mov eax, dword [esi + 0x1a8]
and eax, 0x4000
or eax, 0
jne 0x1001efdc
mov eax, dword [edi + 0x30]
cmp eax, 0xfffffffe
je 0x1001efbd
cmp eax, 0xffffffff
je 0x1001ef9e
push eax
push str.port__u
lea eax, [ebp - 0x64]
push 0x60
push eax
call fcn.10020380
add esp, 0x10
jmp 0x1001efdc
mov ax, word [0x100459c4]
movups xmm0, xmmword [str._serving_disabled_]
mov word [ebp - 0x54], ax
mov al, byte [0x100459c6]
movups xmmword [ebp - 0x64], xmm0
mov byte [ebp - 0x52], al
jmp 0x1001efdc
mov eax, dword [0x100459d0]
movq xmm0, qword [str._no_listener_]
mov dword [ebp - 0x5c], eax
mov ax, word [0x100459d4]
movq qword [ebp - 0x64], xmm0
mov word [ebp - 0x58], ax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x12c], 0
mov dword [esi + 0x224], eax
mov byte [esi + 0xa4], 0
cmp dword [edi + 0x10], 0
je 0x1001f017
mov eax, dword [edi + 0x34]
test eax, eax
je 0x1001f009
mov dword [esi + 0x12c], eax
push dword [edi + 0x10]
push esi
call fcn.10030a10
add esp, 8
jmp 0x1001f041
push str.http_proxy
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
je 0x1001f041
push 0x60
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.100204f0
lea eax, [ebp - 0x64]
push eax
push esi
call fcn.10030a10
add esp, 0x14
mov eax, dword [edi + 0x64]
mov dword [esi + 0x22c], eax
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x234], eax
mov eax, dword [edi + 0x68]
push esi
push edi
mov dword [esi + 0x230], eax
call fcn.100231a0
add esp, 8
test eax, eax
jns 0x1001f071
mov eax, str.init_server_failed_n
jmp 0x1001f0b5
mov ecx, dword [ebp - 0x74]
mov eax, dword [ecx]
test eax, eax
je 0x1001f095
nop word [eax + eax]
lea esi, [eax + 0x1b4]
mov eax, dword [esi]
mov dword [ebp - 0x74], esi
test eax, eax
jne 0x1001f080
mov esi, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x6c]
mov dword [ecx], esi
test byte [eax + 0x4ec], 0x40
je 0x1001f0dd
push eax
call fcn.1001f1d0
add esp, 4
test eax, eax
je 0x1001f0dd
mov eax, str.lws_protocol_init_failed
mov edx, 0x188
mov ecx, esi
push eax
push str.lws_create_vhost
push 1
push esi
push 0x1001f190
push dword [ecx + edx]
call fcn.1001dc10
push esi
call fcn.1001faf0
jmp 0x1001eec5
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039446
mov esp, ebp
pop ebp
ret