Function at 0x415c27
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
cmp dword [ebp + 8], 1
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [0x41e558], esi
jle 0x415c7d
push 0x41dbcc
push dword [esi + 4]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x415c7d
cmp dword [ebp + 8], 6
je 0x415c5d
call fcn.00415f52
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.00414d8c
add esp, 0x10
neg eax
sbb eax, eax
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
cmp dword [ebp + 8], 2
jne 0x415cae
push 0x41dbc8
push dword [esi + 4]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x415ca9
push str.__help
push dword [esi + 4]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x415cae
call fcn.00415f52
push esi
call fcn.0041638d
mov eax, dword [0x41e200]
xor edi, edi
cmp eax, edi
pop ecx
mov ebx, str.main.c
je 0x415d00
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x40
push ecx
push 0x41c908
push eax
call dword [sym.imp.MSVCRT.dll_freopen]
add esp, 0xc
test eax, eax
jne 0x415d00
push ebx
push str.main.c:826
push edi
call fcn.00408f0f
add esp, 0xc
test eax, eax
je 0x415d00
push str.errorp_redirecting_log
call fcn.00408faa
pop ecx
push edi
push 0x41e0e0
call fcn.0040c166
mov eax, dword [0x41e420]
push ebx
push str.main.c:832
push 3
mov dword [0x41e0e4], eax
call fcn.00408f0f
add esp, 0x14
test eax, eax
je 0x415d34
push str.created_server
call fcn.00408faa
pop ecx
lea eax, [ebp - 0xc]
push edi
push eax
push dword [0x41e1c8]
call fcn.0040bd27
add esp, 0xc
cmp eax, edi
mov dword [ebp - 4], eax
je 0x415eb2
jmp 0x415d56
xor edi, edi
mov eax, dword [ebp - 0xc]
push 6
push str.ssl:__
push eax
xor esi, esi
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], 0x41b598
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x415d80
add dword [ebp + 8], 6
push 1
pop esi
push 0x20
lea eax, [ebp - 0x2c]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 0xc]
cmp esi, edi
mov dword [ebp - 0x24], eax
je 0x415e2e
call fcn.004158c6
test eax, eax
je 0x415dc0
call fcn.00416057
test eax, eax
jne 0x415dc0
push str.Only_SSL_DEV_edition_can_use_SSL
push 0x41b7d8
call fcn.00415eb7
pop ecx
pop ecx
mov eax, dword [0x41e550]
cmp eax, edi
jne 0x415ddc
push str.Please_set_ssl_certificate_and_ssl_key
push 0x41b7d8
call fcn.00415eb7
pop ecx
pop ecx
jmp 0x415e2e
cmp dword [0x41e458], edi
jne 0x415de9
mov dword [0x41e458], eax
push ebx
push str.main.c:858
push 2
call fcn.00408f0f
add esp, 0xc
test eax, eax
je 0x415e16
push dword [0x41e458]
push dword [0x41e550]
push str.Certificate_from__s__key_from__s
call fcn.00408faa
add esp, 0xc
mov eax, dword [0x41e550]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x41e458]
mov dword [ebp - 0x18], eax
mov eax, dword [0x41e44c]
mov dword [ebp - 0x14], eax
sub esp, 0x20
lea esi, [ebp - 0x2c]
push 8
pop ecx
mov edi, esp
push 0x41607d
push dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
push 0x41e0e0
call fcn.0040cf95
mov esi, eax
add esp, 0x2c
test esi, esi
jne 0x415e69
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Error_starting_server_on_port__s:__s_n
call fcn.00415eb7
add esp, 0xc
push esi
call fcn.0040fa6f
push ebx
push str.main.c:873
push 3
call fcn.00408f0f
add esp, 0x10
test eax, eax
je 0x415e96
push dword [ebp - 0xc]
push dword [ebp - 8]
push str.Set_listener___.s_
call fcn.00408faa
add esp, 0xc
lea eax, [ebp - 0xc]
push 0
push eax
push dword [ebp - 4]
call fcn.0040bd27
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x415d54
pop edi
pop esi
pop ebx
leave
ret