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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x164
mov ebp, dword [esp + 0x17c]
mov edi, dword [esp + 0x178]
mov esi, dword [esp + 0x184]
call 0x462c84
pop eax
mov dword [esp + 0x14], eax
cmp byte [ebp + 0x138], 0
jne 0x462c9b
mov ecx, ebp
mov edx, esi
call fcn.0045db40
mov eax, accept
add eax, dword [esi]
cmp eax, 5
setb cl
cmp eax, 1
setne al
test cl, al
jne 0x462de5
cmp dword [esi + 0xc], reloc.WS2_32.dll_getpeername
jne 0x462de5
lea eax, [esi + 0xc]
mov ebx, dword [esi + 0x20]
mov edx, dword [esp + 0x180]
mov ecx, dword [esi + 0x10]
cmp dword [esi + 0x18], 0
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
mov dword [esp], ebx
mov ebx, dword [esi + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x2c], eax
je 0x462f61
mov esi, edi
mov edi, dword [edx]
mov word [esp + 0x14c], 4
mov dword [esp + 0xd0], reloc.WS2_32.dll_accept
mov dword [esp + 0xd4], 0x100001
xor eax, eax
mov dword [esp + 8], ecx
lea edx, [esp + 0xd0]
cmp byte [edi + 0x31], 2
mov ecx, edi
sete al
push eax
call fcn.00449cc0
add esp, 4
mov byte [edi + 0x249], 1
mov byte [esi], 3
mov byte [esi + 4], 5
cmp dword [esp + 8], 0
je 0x462d5f
push dword [esp + 0x24]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x462d7d
mov edi, dword [esp]
nop word cs:[eax + eax]
mov ecx, edi
call fcn.00445910
add edi, 0x18
dec ebx
jne 0x462d70
cmp dword [esp + 0x2c], 0
je 0x462d95
push dword [esp]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x184]
mov ecx, dword [esp + 0x28]
mov eax, dword [esi]
lea edi, [eax + 0x7fffffff]
cmp edi, 5
setae dl
cmp edi, 1
sete dh
or dh, dl
je 0x462f35
cmp dword [ecx], reloc.WS2_32.dll_getpeername
je 0x462dcb
call fcn.004490d0
mov eax, dword [esi]
mov edi, dword [esp + 0x178]
test eax, 0x7fffffff
je 0x462efa
push dword [esi + 4]
jmp 0x463574
lea edi, [esp + 0xd0]
mov ecx, 0x1f
mov edx, 2
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0xd0]
movzx eax, byte [0x62314d]
lea ebp, [edi + 0x7fffffff]
cmp ebp, 5
setb bl
cmp ebp, 1
setne bh
xor ecx, ecx
call fcn.0048bb80
mov esi, eax
test bl, bh
jne 0x462e51
test esi, esi
je 0x463616
mov word [esi], 8
movzx eax, byte [esp + 0x148]
movzx ebx, byte [esp + 0x149]
shl eax, 8
shl ebx, 0x10
or ebx, eax
mov eax, 1
jmp 0x462e72
test esi, esi
je 0x463616
cmp ebp, 5
mov eax, 1
mov word [esi], 2
cmovb eax, ebp
mov ebx, dword [eax*4 + 0x61f938]
xor eax, eax
or ebx, eax
cmp ebp, 5
mov ecx, 1
lea eax, [esp + 0xd8]
cmovb ecx, ebp
cmp ecx, 3
ja 0x462f1f
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x178]
add edx, dword [ecx*4 + 0x463744]
jmp edx
push dword [eax]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp], ebx
mov dword [ebp + 4], 1
mov dword [ebp + 8], esi
mov edi, ebp
mov dword [ebp + 0xc], 1
mov ebp, dword [esp + 0x17c]
push ebp
call fcn.004645d0
add esp, 4
push ebp
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
add esp, 0x164
pop esi
pop edi
pop ebx
pop ebp
ret
test dword [esp + 0xd4], 0x7fffffff
mov ebp, dword [esp + 0x178]
je 0x462edd
jmp 0x462ecd
cmp edi, 3
ja 0x463558
mov eax, dword [esp + 0x14]
add eax, dword [edi*4 + 0x4637f8]
mov edi, dword [esp + 0x178]
jmp eax
test ebx, ebx
je 0x46317b
mov edx, dword [esp]
lea eax, [ebx + ebx*2]
mov dword [esp + 8], ecx
lea eax, [edx + eax*8]
mov dword [esp + 0x10], eax
mov eax, edx
mov ebp, dword [eax + 8]
mov edi, dword [eax + 4]
add eax, 0x18
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 4], eax
lea esi, [edi + 0xe]
shl ebp, 4
jmp 0x462fcd
test ebp, ebp
je 0x4630cf
cmp dword [edi], reloc.WS2_32.dll_accept
mov dx, 5
je 0x463000
movzx edx, word [edi + 0xc]
movzx eax, dx
mov eax, dword [eax*4 + 0x463754]
add eax, dword [esp + 0x14]
jmp eax
movzx eax, dx
mov eax, dword [eax*4 + 0x463754]
add eax, dword [esp + 0x14]
jmp eax
lea ecx, [esp + 0xd0]
call fcn.0045d6c0
mov eax, dword [esp + 4]
cmp eax, dword [esp + 0x10]
jne 0x462f7c
mov eax, dword [esp]
mov edi, dword [esp + 0x178]
mov ebp, dword [esp + 0x17c]
jmp 0x46359b
mov eax, dword [esp + 0x180]
mov esi, edi
mov word [esp + 0x14c], 4
mov dword [esp + 0xd0], reloc.WS2_32.dll_accept
mov dword [esp + 0xd4], 0x1a0001
lea edx, [esp + 0xd0]
mov edi, dword [eax]
xor eax, eax
cmp byte [edi + 0x31], 2
mov ecx, edi
sete al
push eax
call fcn.00449cc0
add esp, 4
mov byte [edi + 0x249], 1
mov word [esi], 0x109
cmp dword [esp + 8], 0
jne 0x462d4d
jmp 0x462d5f
mov eax, dword [esp]
xor edi, edi
mov edx, 1
mov dword [esp + 0x14], eax
test ecx, ecx
mov dword [esp + 4], edx
mov dword [esp + 0xc], edi
je 0x4631a7
push dword [esp + 0x24]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp]
mov edx, dword [esp + 0x14]
cmp edx, eax
mov dword [esp + 8], eax
je 0x463227
mov esi, dword [esp]
mov eax, edx
sub eax, esi
add eax, esi
mov dword [esp + 8], eax
jmp 0x4631ec
mov ebp, 1
push edi
push ebx
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edx, dword [esp + 0x14]
mov ebx, ebp
mov eax, edi
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
add esi, 0xc
cmp esi, edx
je 0x463220
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov edi, dword [esi + 8]
mov ecx, eax
neg ecx
jno 0x4631dd
test edi, edi
js 0x463616
je 0x4631c5
movzx eax, byte [0x62314d]
xor ecx, ecx
mov edx, edi
call fcn.0048bb80
test eax, eax
je 0x463616
mov ebp, eax
jmp 0x4631ca
mov ebp, dword [esp + 0x17c]
movsd xmm1, qword [ebp + 0x50]
movsd xmm2, qword [ebp + 0x108]
mov eax, dword [ebp + 0x58]
movsd xmm0, qword [ebp + 0x48]
movsd xmm3, qword [ebp + 0xf8]
lea esi, [esp + 0xd0]
movsd qword [esp + 0x48], xmm1
movsd xmm1, qword [ebp + 0x100]
movsd qword [esp + 0x80], xmm2
movsd xmm2, qword [ebp + 0x118]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x18]
movsd qword [esp + 0x40], xmm0
movsd qword [esp + 0x70], xmm3
movsd qword [esp + 0x78], xmm1
movsd xmm1, qword [ebp + 0x110]
movsd qword [esp + 0x90], xmm2
movsd xmm2, qword [ebp + 0x128]
mov dword [esp + 0x6c], eax
lea eax, [ebp + 0x64]
movsd qword [esp + 0x88], xmm1
movsd xmm1, qword [ebp + 0x120]
movsd qword [esp + 0xa0], xmm2
movsd xmm2, qword [ebp + 0x5c]
movsd qword [esp + 0x98], xmm1
movsd xmm1, qword [ebp + 0x130]
movups xmmword [esp + 0x14], xmm2
movsd xmm2, qword [ebp]
movsd qword [esp + 0xa8], xmm1
movsd xmm1, qword [ebp + 0x10]
movsd qword [esp + 0x54], xmm2
movsd qword [esp + 0x64], xmm1
movsd xmm1, qword [ebp + 8]
movsd qword [esp + 0x5c], xmm1
push 0x94
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm1, qword [ebp + 0x30]
movsd xmm0, qword [ebp + 0x28]
movsd xmm2, qword [ebp + 0x40]
mov eax, dword [ebp + 0x24]
xor ecx, ecx
mov edx, 0x150
mov ebx, ebp
movsd qword [esp + 0xb8], xmm1
movsd xmm1, qword [ebp + 0x38]
movsd qword [esp + 0xb0], xmm0
movsd qword [esp + 0xc8], xmm2
mov dword [esp + 0x3c], eax
movsd qword [esp + 0xc0], xmm1
movsd xmm1, qword [ebp + 0x1c]
movsd qword [esp + 0x34], xmm1
movzx eax, byte [0x62314d]
call fcn.0048bb80
test eax, eax
je 0x463616
mov edi, eax
mov ecx, dword [esp]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x2c]
sub eax, ecx
add edx, edx
shr eax, 2
mov dword [edi], edx
mov dword [edi + 4], ecx
mov ecx, dword [esp + 4]
imul eax, eax, 0xaaaaaaab
mov dword [edi + 8], eax
mov eax, dword [esp + 0xc]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x6c]
mov dword [edi + 0x30], eax
movsd xmm0, qword [esp + 0x64]
movsd qword [edi + 0x28], xmm0
movsd xmm0, qword [esp + 0x54]
movsd xmm1, qword [esp + 0x5c]
movsd qword [edi + 0x20], xmm1
movsd qword [edi + 0x18], xmm0
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x3c], eax
movsd xmm0, qword [esp + 0x34]
movsd qword [edi + 0x34], xmm0
movsd xmm0, qword [esp + 0xc8]
movsd qword [edi + 0x58], xmm0
movsd xmm0, qword [esp + 0xc0]
movsd qword [edi + 0x50], xmm0
movsd xmm0, qword [esp + 0xb0]
movsd xmm1, qword [esp + 0xb8]
movsd qword [edi + 0x48], xmm1
movsd qword [edi + 0x40], xmm0
mov eax, dword [esp + 0x50]
mov dword [edi + 0x70], eax
mov eax, edi
movsd xmm1, qword [esp + 0x48]
movsd xmm0, qword [esp + 0x40]
add eax, 0x7c
movsd qword [edi + 0x68], xmm1
movups xmm1, xmmword [esp + 0x14]
movsd qword [edi + 0x60], xmm0
movlps qword [edi + 0x74], xmm1
push 0x94
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm0, qword [esp + 0x70]
movsd xmm1, qword [esp + 0x78]
mov eax, dword [esp + 0x178]
mov ecx, dword [esp + 0x184]
movsd qword [edi + 0x110], xmm0
movsd qword [edi + 0x118], xmm1
movsd xmm0, qword [esp + 0x80]
movsd qword [edi + 0x120], xmm0
movsd xmm0, qword [esp + 0x88]
movsd qword [edi + 0x128], xmm0
movsd xmm0, qword [esp + 0x90]
movsd qword [edi + 0x130], xmm0
movsd xmm0, qword [esp + 0x98]
movsd qword [edi + 0x138], xmm0
movsd xmm0, qword [esp + 0xa0]
movsd qword [edi + 0x140], xmm0
movsd xmm0, qword [esp + 0xa8]
movsd qword [edi + 0x148], xmm0
mov dword [eax + 4], edi
mov dword [eax + 8], 0x5e2d40
mov edi, eax
mov byte [eax], 0x16
mov eax, dword [ecx]
lea esi, [eax + 0x7fffffff]
cmp esi, 5
setae dl
cmp esi, 1
sete dh
or dh, dl
je 0x463587
mov ecx, dword [esp + 0x28]
cmp dword [ecx], reloc.WS2_32.dll_getpeername
je 0x463528
call fcn.004490d0
mov eax, dword [esp + 0x184]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x46358c
mov eax, dword [esp + 0x184]
push dword [eax + 4]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46358c
test dword [esi + 4], 0x7fffffff
mov edi, dword [esp + 0x178]
je 0x462efa
mov eax, 8
push dword [esi + eax]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x462efa
call fcn.0045e5e0
push ebx
jmp 0x462f04
add eax, 0x18
cmp eax, dword [esp + 0x10]
je 0x4635c6
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x463592
mov edx, dword [eax + 4]
shl ecx, 4
jmp 0x4635b2
add edx, 0x10
add ecx, 0xfffffff0
je 0x463592
cmp dword [edx], reloc.WS2_32.dll_accept
je 0x4635aa
cmp word [edx + 0xc], 5
je 0x4635aa
jmp 0x463119
mov ecx, dword [esp]
mov edx, 1
xor edi, edi
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
shl ecx, 4
test ecx, ecx
je 0x463637
cmp dword [eax], reloc.WS2_32.dll_accept
je 0x4635f4
add ecx, 0xfffffff0
cmp word [eax + 0xc], 5
lea eax, [eax + 0x10]
jne 0x4635d9
jmp 0x463637
mov ecx, dword [eax + 0xc]
test ecx, ecx
js 0x463616
mov esi, dword [eax + 8]
mov edi, ecx
je 0x463618
movzx eax, byte [0x62314d]
xor ecx, ecx
mov edx, edi
call fcn.0048bb80
test eax, eax
jne 0x46361d
ud2
mov eax, 1
mov dword [esp + 4], eax
push edi
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ebp, dword [esp + 0x17c]
mov edx, dword [esp + 4]
test ebx, ebx
je 0x463738
mov dword [esp + 0xc], edi
mov edi, dword [esp]
mov dword [esp + 4], edx
mov edx, edi
jmp 0x463675
mov eax, dword [esp + 0xd8]
add edi, 0x18
mov dword [edx + 8], eax
movsd xmm0, qword [esp + 0xd0]
movsd qword [edx], xmm0
add edx, 0xc
cmp edi, dword [esp + 0x10]
je 0x46370c
mov ecx, dword [edi + 0x14]
mov eax, dword [edi]
mov esi, dword [edi + 4]
mov ebp, dword [edi + 8]
mov dword [esp + 0xd8], ecx
mov dword [esp + 0x14], esi
test ebp, ebp
mov esi, edx
mov dword [esp + 0x30], eax
movsd xmm0, qword [edi + 0xc]
movsd qword [esp + 0xd0], xmm0
je 0x4636e8
mov ebx, dword [esp + 0x14]
jmp 0x4636c2
push dword [ebx + ecx]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, esi
add ebx, 0x10
dec ebp
je 0x4636e8
mov eax, dword [ebx]
mov ecx, eax
neg ecx
jo 0x4636bc
jae 0x4636bc
mov ecx, 4
cmp eax, reloc.WS2_32.dll_accept
jne 0x4636a9
test dword [ebx + 4], 0x7fffffff
je 0x4636bc
mov ecx, 8
jmp 0x4636a9
cmp dword [esp + 0x30], 0
je 0x46364e
push dword [esp + 0x14]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, esi
jmp 0x46364e
mov dword [esp + 0x14], edx
mov ebp, dword [esp + 0x17c]
mov ecx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 4]
test ecx, ecx
mov dword [esp + 4], edx
mov dword [esp + 0xc], edi
jne 0x463195
jmp 0x4631a7
mov eax, dword [esp]
mov ecx, dword [esp + 8]
jmp 0x463185