Function at 0x401b40
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x43c
call fcn.0040af50
call fcn.0040ae50
call fcn.00408f00
sub esp, 4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
dec eax
push eax
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
call fcn.0040a9d0
add esp, 0x10
test eax, eax
mov ebx, eax
js 0x401dc2
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push 0x413038
push eax
push 0x4111d7
push esi
call fcn.0040a480
add esp, 0x10
test eax, eax
mov ebx, eax
js 0x401da0
push 0x413034
lea eax, [ebp - 0x1c]
push eax
push 0x4111da
push esi
call fcn.0040a480
add esp, 0x10
test eax, eax
mov ebx, eax
js 0x401da0
sub esp, 0xc
push 0x100
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x4111dd
push esi
call fcn.0040a3c0
add esp, 0x20
test eax, eax
mov ebx, eax
js 0x401da0
sub esp, 4
push 0x413030
push 0x4111e0
push esi
call fcn.0040a3f0
add esp, 0x10
test eax, eax
mov ebx, eax
js 0x401da0
mov eax, dword [0x413030]
mov ebx, 0x7839400
test eax, eax
je 0x401e3b
mov esi, dword [0x413030]
test esi, esi
jne 0x401fc3
cmp dword [0x4130f0], 9
jg 0x401de2
call fcn.00401390
test eax, eax
mov ebx, eax
js 0x401da0
cmp dword [0x4130f0], 9
jg 0x401fcd
sub esp, 0xc
push 0x413040
call fcn.0040ae10
add esp, 0x10
test eax, eax
mov ebx, eax
js 0x401e31
cmp dword [0x4130f0], 9
jg 0x401ffa
mov eax, dword [0x413034]
sub esp, 8
add eax, 8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push 0x413050
push 1
push eax
mov ecx, dword [0x413038]
push ecx
push 0x401a40
mov edx, dword [0x413040]
push edx
call fcn.00409ed0
add esp, 0x20
test eax, eax
mov ebx, eax
js 0x401e0f
sub esp, 0xc
push str.conet_slirp_daemon:_running_n
call fcn.00409bd0
lea edi, [ebp - 0x32c]
add esp, 0x10
lea esi, [ebp - 0x228]
lea esi, [esi]
sub esp, 8
push 1
mov eax, dword [0x413040]
push eax
call fcn.0040ae00
add esp, 0x10
test eax, eax
js 0x401e1f
xor eax, eax
mov dword [ebp - 0x228], eax
xor eax, eax
mov dword [ebp - 0x32c], eax
xor eax, eax
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x430]
mov dword [ebp - 0x24], 0xffffffff
push eax
push edi
push esi
lea eax, [ebp - 0x24]
push eax
call fcn.00408ba0
xor eax, eax
mov dword [ebp - 0x124], eax
mov eax, 0x3e8
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x124]
mov dword [esp], eax
lea eax, [ebp - 0x430]
push eax
push edi
push esi
mov eax, dword [ebp - 0x24]
inc eax
push eax
call sub.WS2_32.DLL_select
add esp, 0xc
test eax, eax
js 0x401ce0
sub esp, 4
lea eax, [ebp - 0x430]
push eax
push edi
push esi
call fcn.004088c0
add esp, 0x10
jmp 0x401ce0
mov ebx, 0x87827401
sub esp, 8
lea eax, [ebp - 0x124]
push eax
push str.conet_slirp_daemon:_Error_in_redirection__s_n
call fcn.00409bd0
add esp, 0x10
nop
lea esi, [esi]
mov esi, dword [ebp - 0x10]
sub esp, 0xc
push esi
call fcn.0040a0d0
add esp, 0x10
test ebx, ebx
js 0x401dc2
call fcn.0040aef0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 8
push ebx
push str.conet_slirp_daemon:_exitcode__x_n
call fcn.00409bd0
add esp, 0x10
call fcn.0040aef0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 4
push str.conet_slirp_daemon:_create_mutex
push str.co_slirp_main
push 0x120
push str.src_colinux_user_slirp_co_main.c
push 0xa
push 0
push str.colinux_slirp_net_daemon
call fcn.0040ac30
add esp, 0x20
jmp 0x401c3d
sub esp, 0xc
push str.conet_slirp_daemon:_monitor_open_failed_n
call fcn.00409bd0
add esp, 0x10
mov edi, dword [0x413040]
sub esp, 0xc
push edi
call fcn.0040adf0
add esp, 0x10
call fcn.00401370
jmp 0x401da0
sub esp, 8
push 1
push esi
call fcn.0040a1d0
add esp, 0x10
test eax, eax
mov ebx, eax
js 0x4020c3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x402055
mov eax, dword [0x413034]
cmp eax, 0xf
ja 0x40206f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4020a9
mov edi, dword [ebp - 0x20]
mov ebx, 0x7841800
test edi, edi
je 0x401c22
lea eax, [ebp - 0x124]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
sub esp, 0xc
push ebx
call sub.ntdll.dll_strlen
add esp, 0x10
cmp eax, 6
jbe 0x401d7f
sub esp, 4
xor esi, esi
push 3
push 0x411271
push ebx
call sub.msvcrt.dll__memicmp
add esp, 0x10
mov dword [ebp - 0x440], esi
test eax, eax
jne 0x402027
mov eax, dword [ebp - 0x24]
add eax, 3
mov dword [ebp - 0x24], eax
cmp byte [eax], 0x3a
jne 0x4020d7
sub esp, 4
inc eax
push 0xa
lea ebx, [ebp - 0x24]
push ebx
push eax
call sub.ntdll.dll_strtol
add esp, 0x10
mov esi, eax
mov eax, dword [ebp - 0x24]
cmp byte [eax], 0x3a
jne 0x4020cd
sub esp, 4
inc eax
push 0xa
push ebx
push eax
call sub.ntdll.dll_strtol
mov edx, 1
add esp, 0x10
mov dword [ebp - 0x444], edx
mov edi, eax
mov eax, dword [ebp - 0x24]
cmp byte [eax], 0x3a
je 0x40208a
mov ebx, edi
xor edi, edi
jmp 0x401f56
push ebx
mov eax, dword [0x413760]
push eax
push esi
mov eax, dword [ebp - 0x440]
push eax
call fcn.00408460
add esp, 0x10
test eax, eax
js 0x401faf
inc edi
inc esi
inc ebx
cmp edi, dword [ebp - 0x444]
jge 0x401f92
cmp dword [0x4130f0], 9
jle 0x401f30
sub esp, 8
push ebx
push esi
mov eax, dword [ebp - 0x440]
push eax
push str.slirp_redir__d__d:_d
push str.parse_redir_param
push 0xba
push str.src_colinux_user_slirp_co_main.c
push 0xa
push 0
push str.colinux_slirp_net_daemon
call fcn.0040ac30
add esp, 0x30
jmp 0x401f30
mov eax, dword [ebp - 0x24]
movzx edx, byte [eax]
inc eax
mov dword [ebp - 0x24], eax
cmp dl, 0x2f
je 0x401e90
mov ebx, 0x7841800
jmp 0x401c22
sub esp, 4
push ebx
push esi
push str.conet_slirp_daemon:_slirp_redir__d:_d_failed._n
call fcn.00409bd0
add esp, 0x10
jmp 0x401f4b
call fcn.004019a0
jmp 0x401db3
sub esp, 4
push str.conet_slirp_daemon:_create_reactor
push str.co_slirp_main
push 0x125
push str.src_colinux_user_slirp_co_main.c
push 0xa
push 0
push str.colinux_slirp_net_daemon
call fcn.0040ac30
add esp, 0x20
jmp 0x401c59
sub esp, 4
push str.conet_slirp_daemon:_connecting_to_monitor
push str.co_slirp_main
push 0x12a
push str.src_colinux_user_slirp_co_main.c
push 0xa
push 0
push str.colinux_slirp_net_daemon
call fcn.0040ac30
add esp, 0x20
jmp 0x401c80
sub esp, 4
push 3
push 0x411275
mov ebx, dword [ebp - 0x24]
push ebx
call sub.msvcrt.dll__memicmp
add esp, 0x10
test eax, eax
jne 0x4020e5
mov ecx, 1
mov dword [ebp - 0x440], ecx
jmp 0x401ecb
sub esp, 0xc
mov ebx, 0x8783bc01
push str.conet_slirp_daemon:_device_index_not_specified_n
call fcn.00409bd0
add esp, 0x10
jmp 0x401da0
sub esp, 8
mov ebx, 0x8783d801
push eax
push str.conet_slirp_daemon:_invalid_index:__d_n
call fcn.00409bd0
add esp, 0x10
jmp 0x401da0
sub esp, 4
inc eax
push 0xa
push ebx
push eax
call sub.ntdll.dll_strtol
add esp, 0x10
test eax, eax
jle 0x4020ef
mov dword [ebp - 0x444], eax
jmp 0x401f27
sub esp, 0xc
mov ebx, 0x8783ec01
push str.conet_slirp_daemon:_coLinux_instance_not_specificed_n
call fcn.00409bd0
add esp, 0x10
jmp 0x401da0
call fcn.004019a0
jmp 0x401da0
mov ebx, 0x8782b801
jmp 0x401d84
mov ebx, 0x8782a401
lea esi, [esi]
jmp 0x401d84
mov ebx, 0x87829001
jmp 0x401d84
mov ebx, 0x8782dc01
jmp 0x401d84