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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x190
mov edi, dword [esp + 0x1a8]
call 0x463826
pop eax
mov ebp, edx
mov dword [esp], ecx
mov dword [esp + 0xc], eax
mov eax, accept
add eax, dword [edi]
lea esi, [edi + 0xc]
mov dword [esp + 0x28], esi
cmp eax, 5
setae dl
cmp eax, 1
sete al
or al, dl
cmp al, 1
jne 0x4638c4
cmp dword [edi + 0xc], 0x80000009
jne 0x4638c4
mov ebx, dword [esp + 0x1a4]
mov ecx, ebp
mov edx, edi
call fcn.0045db40
cmp dword [edi + 0x18], 0
je 0x463abe
mov word [esp + 0x178], 4
mov dword [esp + 0xfc], reloc.WS2_32.dll_accept
mov dword [esp + 0x100], 0x100001
xor eax, eax
lea edx, [esp + 0xfc]
mov ecx, ebx
cmp byte [ebx + 0x31], 2
sete al
push eax
call fcn.00449cc0
add esp, 4
mov eax, dword [esp]
mov byte [ebx + 0x249], 1
mov byte [eax], 3
mov byte [eax + 4], 5
jmp 0x46394c
test al, al
je 0x4638f3
movzx eax, byte [0x62314d]
xor ecx, ecx
mov edx, 2
call fcn.0048bb80
test eax, eax
je 0x4643d0
mov word [eax], 0xa
lea edx, [edi + 0x78]
mov cl, 1
movzx ebx, byte [edi + 0x79]
jmp 0x46392d
movzx eax, byte [0x62314d]
xor ecx, ecx
mov edx, 2
call fcn.0048bb80
test eax, eax
je 0x4643d0
mov word [eax], 2
mov ecx, accept
mov edx, 1
add ecx, dword [edi]
cmp ecx, 5
cmovb edx, ecx
xor ecx, ecx
lea edx, [edx + 0x61f94c]
movzx edx, byte [edx]
mov esi, dword [esp]
mov byte [esi + 1], dl
mov byte [esi + 2], bl
mov byte [esi], cl
mov dword [esi + 4], 1
mov dword [esi + 8], eax
mov dword [esi + 0xc], 1
mov esi, dword [edi]
mov eax, 1
lea ecx, [esi + 0x7fffffff]
cmp ecx, 5
cmovb eax, ecx
cmp eax, 3
ja 0x46398c
mov ecx, dword [esp + 0xc]
add ecx, dword [eax*4 + 0x4643f4]
jmp ecx
test dword [edi + 4], 0x7fffffff
jne 0x463d48
mov eax, dword [ebp + 0x3c]
lock dec dword [eax]
jne 0x4639a9
lea ecx, [ebp + 0x3c]
call fcn.0049c0a0
cmp byte [ebp + 0x28], 0
jne 0x4639c9
test dword [ebp + 0x2c], 0x7fffffff
je 0x4639c9
push dword [ebp + 0x30]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov eax, dword [edi]
test eax, eax
je 0x4639db
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x4639f9
cmp dword [edi + 8], 9
jb 0x4639ea
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test dword [ebp], 0x7fffffff
je 0x463a13
push dword [ebp + 4]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp + 0x48]
mov esi, dword [ebp + 0x44]
mov eax, dword [edi]
test eax, eax
je 0x463a25
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x463a43
cmp dword [edi + 8], 9
jb 0x463a34
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp + 0x50]
call fcn.00435910
lea ecx, [ebp + 0x94]
call fcn.00435910
mov ebx, dword [ebp + 0x1c]
mov eax, ebx
neg eax
jo 0x463aa4
mov eax, dword [ebp + 0x20]
mov edi, ebp
mov ebp, dword [ebp + 0x24]
test ebp, ebp
mov dword [esp], eax
je 0x463a8d
mov esi, dword [esp]
nop word cs:[eax + eax]
nop dword [eax + eax]
mov ecx, esi
call fcn.00498fe0
add esi, 0x3c
dec ebp
jne 0x463a80
test ebx, ebx
mov ebp, edi
je 0x463aa4
push dword [esp]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x190
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x24]
xor eax, eax
mov dword [esp + 4], ebp
test ecx, ecx
je 0x463b1a
mov edx, dword [edi + 0x20]
shl ecx, 4
mov esi, 3
jmp 0x463ae8
add edx, 0x10
add ecx, 0xfffffff0
je 0x463b1a
mov edi, dword [edx]
lea ebx, [edi + 0x7fffffff]
cmp ebx, 3
cmovae ebx, esi
lea ebp, [ebx - 1]
cmp ebp, 2
jb 0x463ae0
cmp ebx, 3
jne 0x463b0a
cmp word [edx + 0xc], 0xd
jne 0x463ae0
cmp edi, reloc.WS2_32.dll_accept
jne 0x463b1a
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
jmp 0x463b1a
test eax, eax
mov ebp, 2
cmove ecx, eax
cmovne ebp, eax
mov eax, 0xfa8
lea edi, [ebp + ecx*4]
shl ecx, 2
test ecx, ecx
je 0x464338
movzx esi, word [ebp]
add ebp, 4
add ecx, 0xfffffffc
cmp esi, 0xb
ja 0x463b33
bt eax, esi
jae 0x463b33
movzx ebx, word [ebp - 2]
movzx eax, byte [0x62314d]
xor ecx, ecx
mov edx, 0x10
call fcn.0048bb80
test eax, eax
je 0x4643d0
mov edx, 1
mov ecx, 0xfa8
mov word [eax], si
mov word [eax + 2], bx
mov dword [esp + 0xfc], 4
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], 1
nop dword [eax]
cmp ebp, edi
je 0x463c04
movzx esi, word [ebp]
add ebp, 4
cmp esi, 0xb
ja 0x463ba0
bt ecx, esi
jae 0x463ba0
movzx ebx, word [ebp - 2]
cmp edx, dword [esp + 0xfc]
je 0x463bd5
mov word [eax + edx*4], si
mov word [eax + edx*4 + 2], bx
inc edx
mov dword [esp + 0x104], edx
jmp 0x463ba0
mov dword [esp + 0x2c], edx
lea ecx, [esp + 0xfc]
mov edx, dword [esp + 0x2c]
push 4
push 2
push 1
call fcn.004de540
mov edx, dword [esp + 0x38]
mov ecx, 0xfa8
add esp, 0xc
mov eax, dword [esp + 0x100]
jmp 0x463bc2
mov eax, dword [esp + 0x100]
mov ebx, dword [esp + 0xfc]
test edx, edx
mov dword [esp + 0x10], eax
je 0x464342
mov esi, dword [esp + 0x1a8]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 4]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], 0
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x463d8c
mov eax, dword [esi + 0x20]
mov ebp, dword [esp + 0xc]
shl ecx, 4
mov edx, 3
jmp 0x463c6c
add eax, 0x10
add ecx, 0xfffffff0
je 0x463d81
mov esi, dword [eax]
lea edi, [esi + 0x7fffffff]
cmp edi, 3
cmovae edi, edx
cmp edi, 2
jb 0x463c60
cmp edi, 3
jne 0x463c8b
cmp word [eax + 0xc], 0x14
jne 0x463c60
cmp esi, reloc.WS2_32.dll_closesocket
mov esi, dword [esp + 0x1a8]
mov ecx, 0
jne 0x463d92
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx + 0x30]
test edx, edx
je 0x4643c2
mov esi, dword [eax + 0xc]
mov edi, dword [ecx + 0x2c]
mov ecx, esi
lea esi, [edi + edx*8]
test ecx, ecx
je 0x463d6f
mov ebp, dword [eax + 8]
shl ecx, 2
mov dword [esp + 0x1c], esi
mov ebx, ecx
mov dword [esp + 0x18], ecx
lea eax, [ebp + 2]
mov dword [esp + 0x14], ebp
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
push dword [edi]
call dword [eax + 0x1c]
add esp, 4
mov esi, ebx
mov ecx, ebx
mov ebx, dword [esp + 8]
cmp ax, 3
je 0x463d26
cmp word [ebp], ax
je 0x463d32
add ebp, 4
add esi, 0xfffffffc
jne 0x463cf8
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
add edi, 8
cmp edi, esi
jne 0x463cdf
jmp 0x4643c9
add ebx, 4
add ecx, 0xfffffffc
je 0x463d06
cmp word [ebx - 2], 3
jne 0x463d1e
cmp word [ebx], dx
jne 0x463d1e
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x3c], eax
mov ebx, dword [esp + 4]
mov esi, dword [esp + 0x1a8]
jmp 0x463d8e
mov eax, 8
push dword [edi + eax]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0x3c]
lock dec dword [eax]
je 0x4639a1
jmp 0x4639a9
mov eax, dword [edi + 4]
push dword [edi]
call dword [eax + 0x1c]
add esp, 4
add edi, 8
cmp edi, esi
jne 0x463d6f
mov esi, dword [esp + 0x1a8]
xor ecx, ecx
jmp 0x463d92
xor ecx, ecx
mov ebp, dword [esp + 0xc]
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x1c], ecx
mov edx, dword [esi + 0x24]
mov ecx, dword [eax + 0x88]
mov edi, dword [ecx + 8]
mov dword [esp + 0x18], ecx
dec edi
test edx, edx
je 0x463e16
mov ecx, dword [esi + 0x20]
shl edx, 4
mov esi, 3
mov dword [esp + 8], edi
jmp 0x463dc8
mov edi, dword [ecx]
lea ebx, [edi + 0x7fffffff]
cmp ebx, 3
cmovae ebx, esi
mov ebx, dword [ebx*4 + 0x4643d4]
add ebx, ebp
jmp ebx
and edi, 0xfffffff8
mov dword [esp + 8], edi
mov edi, dword [esi + 0x18]
test edi, edi
js 0x4643d0
mov ebx, dword [eax + 0x84]
mov esi, dword [esi + 0x14]
je 0x463e4e
movzx eax, byte [0x62314d]
xor ecx, ecx
mov edx, edi
call fcn.0048bb80
mov ebp, eax
test eax, eax
jne 0x463e53
jmp 0x4643d0
mov ebp, 1
mov eax, dword [esp + 8]
lea ebx, [ebx + eax + 8]
push edi
push esi
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [esp + 0xdc]
mov edx, ebx
mov dword [esp + 0xfc], edi
mov dword [esp + 0x100], ebp
mov dword [esp + 0x104], edi
push dword [esp + 0x3c]
push dword [esp + 0x20]
lea ebp, [esp + 0x104]
push ebp
push dword [esp + 0x38]
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x3c]
push dword [esp + 0x34]
call fcn.00464410
add esp, 0x20
mov ebx, dword [esp + 4]
cmp byte [ebx + 0x118], 0
lea edx, [ebx + 0x28]
lea ecx, [ebx + 0xd8]
lea eax, [ebx + 0x44]
lea esi, [ebx + 0x1c]
je 0x4640bb
movsd xmm1, qword [edx + 8]
movsd xmm2, qword [ecx]
mov edi, dword [edx + 0x10]
movsd xmm0, qword [edx]
movsd qword [esp + 0xd0], xmm1
movsd xmm1, qword [ecx + 8]
movsd qword [esp + 0x40], xmm2
movsd xmm2, qword [ecx + 0x18]
mov dword [esp + 0xd8], edi
movsd qword [esp + 0xc8], xmm0
movsd qword [esp + 0x48], xmm1
movsd xmm1, qword [ecx + 0x10]
movsd qword [esp + 0x58], xmm2
movsd xmm2, qword [ecx + 0x28]
movsd qword [esp + 0x50], xmm1
movsd xmm1, qword [ecx + 0x20]
movsd qword [esp + 0x68], xmm2
movsd xmm2, qword [ecx + 0x38]
movsd qword [esp + 0x60], xmm1
movsd xmm1, qword [ecx + 0x30]
movsd qword [esp + 0x78], xmm2
movsd xmm2, qword [ebx]
mov ecx, dword [ebx + 0x18]
movsd qword [esp + 0x70], xmm1
movsd xmm1, qword [ebx + 0x3c]
mov dword [esp + 0x98], ecx
movsd qword [esp + 0x80], xmm2
movups xmmword [esp + 0x2c], xmm1
movsd xmm1, qword [ebx + 8]
movsd qword [esp + 0x88], xmm1
movsd xmm1, qword [ebx + 0x10]
movsd qword [esp + 0x90], xmm1
push 0x94
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm1, qword [esp + 0xe4]
movsd xmm0, qword [esp + 0xdc]
movsd xmm2, qword [esp + 0xf4]
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, 0x138
movsd qword [esp + 0xb0], xmm1
movsd xmm1, qword [esp + 0xec]
movsd qword [esp + 0xa8], xmm0
movsd qword [esp + 0xc0], xmm2
movsd qword [esp + 0xb8], xmm1
movsd xmm1, qword [esi]
mov dword [esp + 0xa4], eax
movsd qword [esp + 0x9c], xmm1
movzx eax, byte [0x62314d]
call fcn.0048bb80
test eax, eax
je 0x4643d0
lea esi, [esp + 0x80]
mov ecx, 0x17
mov edi, eax
mov edx, ebp
mov ebp, eax
rep movsd dword es:[edi], dword [esi]
movups xmm0, xmmword [esp + 0x2c]
movlps qword [eax + 0x5c], xmm0
add eax, 0x64
push 0x94
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm0, qword [esp + 0x40]
movsd xmm1, qword [esp + 0x48]
mov eax, 0x5e2cf8
movsd qword [ebp + 0xf8], xmm0
movsd qword [ebp + 0x100], xmm1
movsd xmm0, qword [esp + 0x50]
movsd qword [ebp + 0x108], xmm0
movsd xmm0, qword [esp + 0x58]
movsd qword [ebp + 0x110], xmm0
movsd xmm0, qword [esp + 0x60]
movsd qword [ebp + 0x118], xmm0
movsd xmm0, qword [esp + 0x68]
movsd qword [ebp + 0x120], xmm0
movsd xmm0, qword [esp + 0x70]
movsd qword [ebp + 0x128], xmm0
movsd xmm0, qword [esp + 0x78]
movsd qword [ebp + 0x130], xmm0
jmp 0x4642a8
movsd xmm1, qword [edx + 8]
movsd xmm2, qword [ecx]
mov edi, dword [edx + 0x10]
movsd xmm0, qword [edx]
movsd qword [esp + 0xd0], xmm1
movsd xmm1, qword [ecx + 8]
movsd qword [esp + 0x40], xmm2
movsd xmm2, qword [ecx + 0x18]
mov dword [esp + 0xd8], edi
movsd qword [esp + 0xc8], xmm0
movsd qword [esp + 0x48], xmm1
movsd xmm1, qword [ecx + 0x10]
movsd qword [esp + 0x58], xmm2
movsd xmm2, qword [ecx + 0x28]
movsd qword [esp + 0x50], xmm1
movsd xmm1, qword [ecx + 0x20]
movsd qword [esp + 0x68], xmm2
movsd xmm2, qword [ecx + 0x38]
movsd qword [esp + 0x60], xmm1
movsd xmm1, qword [ecx + 0x30]
movsd qword [esp + 0x78], xmm2
movsd xmm2, qword [ebx]
mov ecx, dword [ebx + 0x18]
movsd qword [esp + 0x70], xmm1
movsd xmm1, qword [ebx + 0x3c]
mov dword [esp + 0x98], ecx
movsd qword [esp + 0x80], xmm2
movups xmmword [esp + 0x2c], xmm1
movsd xmm1, qword [ebx + 8]
movsd qword [esp + 0x88], xmm1
movsd xmm1, qword [ebx + 0x10]
movsd qword [esp + 0x90], xmm1
push 0x94
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm1, qword [esp + 0xe4]
movsd xmm0, qword [esp + 0xdc]
movsd xmm2, qword [esp + 0xf4]
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, 0x13c
movsd qword [esp + 0xb0], xmm1
movsd xmm1, qword [esp + 0xec]
movsd qword [esp + 0xa8], xmm0
movsd qword [esp + 0xc0], xmm2
movsd qword [esp + 0xb8], xmm1
movsd xmm1, qword [esi]
mov dword [esp + 0xa4], eax
movsd qword [esp + 0x9c], xmm1
movzx eax, byte [0x62314d]
call fcn.0048bb80
test eax, eax
je 0x4643d0
lea esi, [esp + 0x80]
mov ecx, 0x17
mov edi, eax
mov edx, ebp
mov ebp, eax
rep movsd dword es:[edi], dword [esi]
movups xmm0, xmmword [esp + 0x2c]
movlps qword [eax + 0x5c], xmm0
add eax, 0x64
push 0x94
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm0, qword [esp + 0x40]
movsd xmm1, qword [esp + 0x48]
mov eax, 0x5e2d1c
movsd qword [ebp + 0xf8], xmm0
movsd qword [ebp + 0x100], xmm1
movsd xmm0, qword [esp + 0x50]
movsd qword [ebp + 0x108], xmm0
movsd xmm0, qword [esp + 0x58]
movsd qword [ebp + 0x110], xmm0
movsd xmm0, qword [esp + 0x60]
movsd qword [ebp + 0x118], xmm0
movsd xmm0, qword [esp + 0x68]
movsd qword [ebp + 0x120], xmm0
movsd xmm0, qword [esp + 0x70]
movsd qword [ebp + 0x128], xmm0
movsd xmm0, qword [esp + 0x78]
movsd qword [ebp + 0x130], xmm0
mov byte [ebp + 0x138], 0
mov ecx, dword [esp]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x1a8]
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x10]
test edx, edx
mov byte [ecx], 0x16
je 0x4642d6
push eax
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [edi]
mov ebp, dword [esp + 4]
mov eax, 1
lea ecx, [esi + 0x7fffffff]
cmp ecx, 5
cmovb eax, ecx
cmp eax, 3
ja 0x46431b
mov ecx, dword [esp + 0xc]
add ecx, dword [eax*4 + 0x4643e4]
jmp ecx
test dword [edi + 4], 0x7fffffff
je 0x463aa4
mov eax, 8
mov eax, dword [edi + eax]
mov dword [esp], eax
jmp 0x463a93
xor ebx, ebx
mov dword [esp + 0x10], 2
mov esi, dword [esp + 0x1a4]
mov word [esp + 0x178], 4
mov dword [esp + 0xfc], reloc.WS2_32.dll_accept
mov dword [esp + 0x100], 0x60001
xor eax, eax
mov ebp, dword [esp + 4]
mov edi, dword [esp + 0x1a8]
lea edx, [esp + 0xfc]
cmp byte [esi + 0x31], 2
mov ecx, esi
sete al
push eax
call fcn.00449cc0
add esp, 4
mov eax, dword [esp]
test ebx, ebx
mov byte [esi + 0x249], 1
mov byte [eax], 8
mov dword [eax + 4], reloc.WS2_32.dll_getpeername
je 0x46394c
push dword [esp + 0x10]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46394c
xor ecx, ecx
jmp 0x463d92
xor ecx, ecx
jmp 0x463d3b
ud2