Function at 0x4d9570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x631ebc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x10]
cmp eax, dword [ecx + 8]
jbe 0x4d9a8a
sub esp, 0x90
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
lea eax, [sym.net._netFD_.accept.func1]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x8c], eax
test byte [eax], al
mov dword [esp], eax
lea ecx, [esp + 0x88]
mov dword [esp + 4], ecx
call sym.internal_poll._FD_.Accept
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0xc]
test eax, eax
je 0x4d96b1
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
test ecx, ecx
je 0x4d968d
mov ebx, dword [esp + 0x24]
lea ebp, [0x558a64]
cmp ebx, ebp
jne 0x4d9687
mov dword [esp + 0x7c], edx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x74], eax
lea ecx, [0x5128a0]
mov dword [esp], ecx
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [0x631fe0]
test ecx, ecx
jne 0x4d964a
mov ecx, dword [esp + 0x74]
jmp 0x4d9655
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x74]
mov dword [edi], ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 8], ecx
mov ecx, dword [0x631fe0]
test ecx, ecx
jne 0x4d9671
mov ecx, dword [esp + 0x7c]
jmp 0x4d967c
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x7c]
mov dword [edi], ecx
mov dword [eax + 0xc], ecx
lea ecx, [0x558a78]
jmp 0x4d9691
mov ecx, eax
mov eax, edx
jmp 0x4d9691
mov ecx, eax
mov eax, edx
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
add esp, 0x90
ret
mov dword [esp + 0x38], edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x94]
mov ebp, dword [eax + 0x138]
mov dword [esp + 0x30], ebp
cmp ebp, 2
je 0x4d96df
cmp ebp, 3
xchg esi, ebx
setne bl
xchg esi, ebx
jmp 0x4d96e1
xor esi, esi
xchg esi, eax
mov byte [esp + 0x2f], al
xchg esi, eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0x134]
mov dword [esp + 0x4c], edx
mov ebx, dword [eax + 0x144]
mov dword [esp + 0x44], ebx
mov ebp, dword [eax + 0x140]
mov dword [esp + 0x60], ebp
lea edi, [0x51d1e0]
mov dword [esp], edi
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x30]
cmp ecx, 1
sete dl
mov byte [eax + 0x12d], dl
movzx edx, byte [esp + 0x2f]
mov byte [eax + 0x12e], dl
mov edx, dword [esp + 0x4c]
mov dword [eax + 0x134], edx
mov dword [eax + 0x138], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x144], ecx
mov ecx, dword [0x631fe0]
test ecx, ecx
jne 0x4d976b
mov ecx, dword [esp + 0x60]
jmp 0x4d977f
call sym.runtime.gcWriteBarrier2
mov ecx, dword [esp + 0x60]
mov dword [edi], ecx
mov edx, dword [eax + 0x140]
mov dword [edi + 4], edx
mov dword [esp + 0x70], eax
mov dword [eax + 0x140], ecx
mov dword [esp], eax
call sym.net._netFD_.init
mov eax, dword [esp + 4]
test eax, eax
jne 0x4d9a33
mov dword [esp + 0x68], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x3c], 0
mov edx, dword [esp + 0x40]
test edx, edx
jbe 0x4d9a80
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], eax
call sym.syscall.GetAcceptExSockaddrs
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call sym.syscall._RawSockaddrAny_.Sockaddr
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 4]
mov dword [esp + 0x84], ecx
mov edx, dword [esp + 8]
mov dword [esp + 0x64], edx
mov dword [esp], eax
call sym.syscall._RawSockaddrAny_.Sockaddr
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x134]
mov edx, dword [esp + 4]
mov dword [esp + 0x80], edx
mov ebx, dword [esp + 8]
mov dword [esp + 0x54], ebx
cmp ecx, 1
jne 0x4d9883
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x4d9869
lea ecx, [0x536114]
jmp 0x4d98c0
cmp ecx, 2
jne 0x4d9876
lea ecx, [0x536118]
jmp 0x4d98c0
cmp ecx, 5
jne 0x4d98ba
lea ecx, [0x53611c]
jmp 0x4d98c0
cmp ecx, 2
je 0x4d988d
cmp ecx, 0x17
jne 0x4d98ba
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x4d98a0
lea ecx, [0x53610c]
jmp 0x4d98c0
cmp ecx, 2
jne 0x4d98ad
lea ecx, [0x536110]
jmp 0x4d98c0
cmp ecx, 3
jne 0x4d98ba
lea ecx, [0x536108]
jmp 0x4d98c0
lea ecx, [0x5360c0]
mov eax, dword [ecx]
mov ebx, dword [esp + 0x84]
mov dword [esp], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 4], ebx
mov edx, ecx
call eax
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x134]
cmp ecx, 1
jne 0x4d9914
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x4d98fa
lea ecx, [0x536114]
jmp 0x4d9951
cmp ecx, 2
jne 0x4d9907
lea ecx, [0x536118]
jmp 0x4d9951
cmp ecx, 5
jne 0x4d994b
lea ecx, [0x53611c]
jmp 0x4d9951
cmp ecx, 2
je 0x4d991e
cmp ecx, 0x17
jne 0x4d994b
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x4d9931
lea ecx, [0x53610c]
jmp 0x4d9951
cmp ecx, 2
jne 0x4d993e
lea ecx, [0x536110]
jmp 0x4d9951
cmp ecx, 3
jne 0x4d994b
lea ecx, [0x536108]
jmp 0x4d9951
lea ecx, [0x5360c4]
mov eax, dword [ecx]
mov ebx, dword [esp + 8]
mov dword [esp + 0x84], ebx
mov ebp, dword [esp + 0xc]
mov dword [esp + 0x6c], ebp
mov esi, dword [esp + 0x80]
mov dword [esp], esi
mov esi, dword [esp + 0x54]
mov dword [esp + 4], esi
mov edx, ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x84]
mov ebp, dword [esp + 0x70]
mov dword [ebp + 0x148], ebx
mov ebx, dword [0x631fe0]
test ebx, ebx
jne 0x4d99a5
mov edx, dword [esp + 0x6c]
jmp 0x4d99b9
call sym.runtime.gcWriteBarrier2
mov edx, dword [esp + 0x6c]
mov dword [edi], edx
mov ebx, dword [ebp + 0x14c]
mov dword [edi + 4], ebx
mov dword [ebp + 0x14c], edx
mov dword [ebp + 0x150], ecx
mov ecx, dword [0x631fe0]
test ecx, ecx
je 0x4d99df
call sym.runtime.gcWriteBarrier2
mov dword [edi], eax
mov ecx, dword [ebp + 0x154]
mov dword [edi + 4], ecx
mov dword [ebp + 0x154], eax
lea eax, [0x523de0]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [0x50a5e0]
mov dword [esp + 8], eax
lea eax, [0x5360bc]
mov dword [esp + 0xc], eax
call sym.runtime.SetFinalizer
mov eax, dword [esp + 0x70]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
add esp, 0x90
ret
mov eax, dword [esp + 4]
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x94]
mov dword [esp], edx
call sym.net._netFD_.Close
mov dword [esp + 0x98], 0
mov eax, dword [esp + 0x84]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xa0], eax
add esp, 0x90
ret
xor eax, eax
mov ecx, eax
call sym.runtime.panicIndex
nop
call sym.runtime.morestack_noctxt
jmp sym.net._netFD_.accept