Function at 0x100095b0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x420
mov eax, dword [0x100112ac]
xor eax, esp
mov dword [esp + 0x41c], eax
mov eax, dword [esp + 0x42c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x438]
xor ebp, ebp
push 0x3ff
lea ecx, [esp + 0x31]
push ebp
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov byte [esp + 0x38], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.10009310
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
cmp ebx, ebp
je case.default.0x1000966f
push esi
push ebp
push ebx
call sub.MSVCR90.dll_memset
push esi
lea ecx, [esp + 0x3c]
push ecx
push ebx
call sub.MSVCR90.dll_memcpy
push 0x400
lea edx, [esp + 0x48]
push ebp
push edx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x458]
dec eax
add esp, 0x24
mov dword [esp + 0x28], eax
cmp eax, 4
ja case.default.0x1000966f
jmp dword [eax*4 + 0x10009ab0]
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.10008eb0
jmp 0x100096b5
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.10008fd0
jmp 0x100096b5
lea edx, [esp + 0x1c]
push edx
push edi
call fcn.10008b20
jmp 0x100096b5
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.10008b70
jmp 0x100096b5
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.10008bb0
mov dword [esp + 0x10], eax
cmp eax, ebp
je case.default.0x1000966f
lea edx, [esi + eax + 4]
push edx
push ebx
call dword [sym.imp.MSVCR90.dll_realloc]
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, ebp
je case.default.0x1000966f
mov edi, eax
mov eax, dword [esp + 0x10]
add eax, 4
push eax
lea ebx, [esi + edi]
push ebp
push ebx
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebx], eax
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
push edx
add esi, 4
lea eax, [esi + edi]
push ebx
push eax
call sub.MSVCR90.dll_memcpy
add esi, dword [esp + 0x1c]
add esp, 0xc
cmp ebx, ebp
je 0x1000972f
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], ebp
lea ebp, [esi + 4]
push ebp
push edi
call dword [sym.imp.MSVCR90.dll_realloc]
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je case.default.0x1000966f
mov edi, dword [esp + 0x440]
mov ebx, eax
push 0x1f90
mov dword [esi + ebx], 0
push edi
mov dword [esi + ebx], 0xa
call fcn.10008a30
mov esi, eax
cmp esi, 0xffffffff
jne 0x10009789
push 0x50
push edi
call fcn.10008a30
mov esi, eax
cmp esi, 0xffffffff
je 0x10009a63
push 0
push ebp
push ebx
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, ebp
jne case.default.0x100099bb
test eax, eax
je case.default.0x100099bb
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push 0
push 4
lea ecx, [esp + 0x34]
push ecx
push esi
call ebx
cmp eax, 0xffffffff
je case.default.0x100099bb
test eax, eax
je case.default.0x100099bb
cmp dword [esp + 0x2c], 0x10100
jne case.default.0x100099bb
push 0x400
lea edx, [esp + 0x30]
push 0
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
push 1
lea eax, [esp + 0x34]
push eax
push esi
call ebx
cmp eax, 0xffffffff
je case.default.0x100099bb
test eax, eax
je case.default.0x100099bb
movzx ecx, byte [esp + 0x2c]
push 0
push ecx
lea edx, [esp + 0x35]
push edx
push esi
call ebx
cmp eax, 0xffffffff
je case.default.0x100099bb
test eax, eax
je case.default.0x100099bb
push 0x400
lea eax, [esp + 0x30]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
push 4
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebx
cmp eax, 0xffffffff
je case.default.0x100099bb
test eax, eax
je case.default.0x100099bb
mov edx, dword [esp + 0x24]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push edx
call edi
push eax
mov dword [esp + 0x28], eax
xor ebp, ebp
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je case.default.0x100099bb
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
push eax
push ebp
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [esp + 0x434], 2
jne 0x10009917
mov edx, dword [esp + 0x14]
push ebp
push 5
push edx
push esi
call ebx
cmp eax, 0xffffffff
je case.default.0x100099bb
test eax, eax
je case.default.0x100099bb
cmp eax, 5
jne case.default.0x100099bb
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 1]
push ecx
call edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x1000997b
mov edx, dword [esp + 0x14]
push ebp
push 8
add edx, 5
push edx
push esi
call ebx
cmp eax, 0xffffffff
je case.default.0x100099bb
test eax, eax
je case.default.0x100099bb
cmp eax, 8
jne case.default.0x100099bb
lea ebp, [eax + 5]
cmp dword [esp + 0x434], 2
jne 0x10009917
mov eax, dword [esp + 0x24]
lea ecx, [eax - 0xd]
jmp 0x1000991d
mov eax, dword [esp + 0x24]
mov ecx, eax
cmp ebp, ecx
jae 0x1000997b
push 0
sub eax, ebp
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [eax + ebp]
push ecx
push esi
call ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
je case.default.0x100099bb
test edi, edi
je case.default.0x100099bb
add ebp, edi
cmp dword [esp + 0x434], 2
jne 0x10009917
push edi
call dword [sym.imp.WS2_32.dll_ntohl]
push 0
push 4
lea edx, [esp + 0x18]
push edx
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 4
je 0x10009904
jmp case.default.0x100099bb
push 0
push 4
lea eax, [esp + 0x34]
push eax
push esi
call ebx
cmp eax, 0xffffffff
je case.default.0x100099bb
test eax, eax
je case.default.0x100099bb
cmp dword [esp + 0x2c], 0xa
jne case.default.0x100099bb
push 0x400
lea ecx, [esp + 0x30]
push 0
push ecx
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x34]
add esp, 0xc
jmp dword [edx*4 + 0x10009ac4]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.10008c90
jmp 0x10009a15
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.10008c80
jmp 0x10009a15
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.100093b0
jmp 0x10009a15
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.10009120
jmp 0x10009a15
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.10008cc0
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0xffffffff
je case.default.0x100099bb
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.MSVCR90.dll_free]
test eax, eax
je 0x10009a3b
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
add esp, 8
mov eax, 1
jmp 0x10009a95
mov esi, dword [esp + 0x20]
cmp esi, 0xffffffff
je 0x10009a63
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.MSVCR90.dll_free]
test eax, eax
je 0x10009a77
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10009a85
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10009a93
push eax
call esi
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000b2cc
add esp, 0x420
ret 0x10