Function at 0x4035d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x228
mov eax, dword [0x4153f8]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x234]
push ebx
push ebp
mov ebp, dword [esp + 0x234]
push esi
push edi
xor ebx, ebx
push 0x8005
push ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], 5
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call fcn.004018a0
add esp, 8
test eax, eax
jns 0x403667
cmp dword [0x418e28], ebx
je 0x40364b
push 0x416dc4
push 0x2ee
push 0x416dd8
push 0x416de8
call fcn.0040602e
add eax, 0x40
push eax
call fcn.004062a0
add esp, 0x14
or eax, 0xffffffff
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040601f
add esp, 0x228
ret
lea ecx, [esp + 0x10]
push ecx
push ebp
call fcn.00401960
add esp, 8
test eax, eax
jns 0x403697
cmp dword [0x418e28], ebx
je 0x40364b
push 0x416e14
push 0x2f4
push 0x416e28
push 0x416e38
jmp 0x40363a
mov esi, 4
lea edi, [esp + 0x14]
push 8
push esi
push edi
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4036bb
add edi, eax
add ebx, eax
sub esi, eax
jne 0x4036a0
test ebx, ebx
jns 0x4036dd
cmp dword [0x418e28], 0
je 0x40364b
push 0x416e64
push 0x2fa
push 0x416e78
push 0x416e88
jmp 0x40363a
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
cmp dword [0x418e2c], 0
mov dword [esp + 0x14], eax
je 0x403728
cmp dword [0x418e28], 0
je 0x403728
push eax
push 0x416eb8
push 0x2ff
push 0x416ecc
push 0x416edc
call fcn.0040602e
add eax, 0x40
push eax
call fcn.004062a0
mov eax, dword [esp + 0x2c]
add esp, 0x18
mov dword [esp + 0x10], 0
test eax, eax
je 0x40364b
jmp 0x403740
push 0x138
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0040cab0
add esp, 0xc
mov esi, 0x138
lea edi, [esp + 0x28]
xor ebx, ebx
nop
push 8
push esi
push edi
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4039fa
add edi, eax
add ebx, eax
sub esi, eax
jne 0x403760
test ebx, ebx
js 0x4039fa
lea esi, [esp + 0x28]
call fcn.004017b0
mov edi, dword [esp + 0x156]
mov esi, dword [esp + 0x154]
lea ecx, [esp + 0x1c8]
push ecx
call fcn.00404770
mov edx, dword [esp + 0x160]
mov eax, dword [esp + 0x15f]
mov ecx, dword [esp + 0x15e]
add esp, 4
push edx
push eax
push ecx
lea edx, [esp + 0x16c]
push edx
call fcn.00404840
add esp, 0x10
cmp dword [0x418e2c], 0
je 0x4038a2
cmp dword [0x418e28], 0
je 0x40381d
lea eax, [esp + 0x1c8]
push eax
lea ecx, [esp + 0x12c]
push ecx
push 0x416f68
push 0x310
push 0x416f7c
push 0x416f8c
call fcn.0040602e
add eax, 0x40
push eax
call fcn.004062a0
add esp, 0x1c
cmp dword [0x418e2c], 0
je 0x4038a2
cmp dword [0x418e28], 0
je 0x40385e
lea edx, [esp + 0x28]
push edx
push 0x416fb4
push 0x416fb8
push 0x311
push 0x416fcc
push 0x416fdc
call fcn.0040602e
add eax, 0x40
push eax
call fcn.004062a0
add esp, 0x1c
cmp dword [0x418e2c], 0
je 0x4038a2
cmp dword [0x418e28], 0
je 0x4038a2
lea eax, [esp + 0x160]
push eax
push 0x417004
push 0x417008
push 0x312
push 0x41701c
push str.usbip_dbg:__13s:_4d____12s___8s:__s_n
call fcn.0040602e
add eax, 0x40
push eax
call fcn.004062a0
add esp, 0x1c
xor ebp, ebp
cmp byte [esp + 0x15f], 0
jbe 0x4039a8
mov esi, 4
lea edi, [esp + 0x1c]
xor ebx, ebx
lea ecx, [ecx]
mov ecx, dword [esp + 0x23c]
push 8
push esi
push edi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x403a36
add edi, eax
add ebx, eax
sub esi, eax
jne 0x4038c0
test ebx, ebx
js 0x403a36
mov ecx, dword [esp + 0x240]
lea eax, [esp + 0x128]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403918
test dl, dl
je 0x403914
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403918
add eax, 2
add ecx, 2
test dl, dl
jne 0x4038f8
xor eax, eax
jmp 0x40391d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x1c]
jne 0x403937
test ebp, ebp
jne 0x403937
mov edx, dword [esp + 0x24]
mov dword [edx], eax
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x1e]
mov edx, dword [esp + 0x1d]
push ecx
push edx
push eax
lea eax, [esp + 0x16c]
push eax
call fcn.00404840
add esp, 0x10
cmp dword [0x418e2c], 0
je 0x403997
cmp dword [0x418e28], 0
je 0x403997
lea ecx, [esp + 0x160]
push ecx
push ebp
push 0x4170ac
push 0x4170b0
push 0x326
push 0x4170c4
push str.usbip_dbg:__13s:_4d____12s___8s:__2d____s_n
call fcn.0040602e
add eax, 0x40
push eax
call fcn.004062a0
add esp, 0x20
movzx edx, byte [esp + 0x15f]
inc ebp
cmp ebp, edx
jb 0x4038b2
cmp dword [0x418e2c], 0
je 0x4039df
cmp dword [0x418e28], 0
je 0x4039df
push str.query_interface0
push 0x329
push 0x417114
push str.usbip_dbg:__13s:_4d____12s____n
call fcn.0040602e
add eax, 0x40
push eax
call fcn.004062a0
add esp, 0x14
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x14]
jae 0x403a5a
mov ebp, dword [esp + 0x23c]
jmp 0x403740
cmp dword [0x418e28], 0
je 0x40364b
mov eax, dword [esp + 0x10]
push eax
push 0x416f10
push 0x307
push 0x416f24
push 0x416f34
call fcn.0040602e
add eax, 0x40
push eax
call fcn.004062a0
add esp, 0x18
jmp 0x40364b
cmp dword [0x418e28], 0
je 0x40364b
push ebp
push 0x417054
push 0x318
push 0x417068
push 0x417078
jmp 0x403a20
cmp dword [esp + 0x18], 0
je 0x40364b
xor eax, eax
jmp 0x40364e