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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
lea edx, [ebp - 8]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x24], 0x607c20
mov dword [ebp - 0x20], 0x60eeb8
mov dword [ebp - 0x18], 0x446def
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x14], esp
mov dword [esp], edx
call fcn.004cf190
mov eax, dword [ebp - 0x40]
cmp byte [eax + 0x98], 0
je 0x446ccd
mov ecx, dword [eax + 0x90]
test ecx, ecx
jle 0x446db1
mov dword [esp], 0
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x38], 0xffffffff
call fcn.004456a0
sub esp, 4
test al, al
je 0x446dc4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], 2
mov dword [eax + 4], 0
mov eax, dword [eax]
mov byte [eax], 0
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x8c]
mov dword [esp + 8], 0x4000
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4000
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x8c]
mov dword [esp + 4], eax
mov eax, dword [edx]
mov dword [esp], eax
mov dword [ebp - 0x38], 1
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
test eax, eax
jle 0x446d79
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x8c]
mov dword [ebp - 0x48], eax
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ecx, dword [ebp + 8]
mov edx, 0x7fffffff
sub edx, dword [ecx + 4]
cmp eax, edx
ja 0x446ddc
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], 1
call fcn.005defe0
sub esp, 8
mov dword [esp], 0x32
mov dword [ebp - 0x38], 1
call fcn.0044d0a0
sub dword [ebp - 0x44], 1
jne 0x446ce3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.004cf200
mov eax, dword [ebp - 0x40]
leave
ret 4
mov edx, dword [eax + 0x94]
test edx, edx
jg 0x446cac
jmp 0x446ccd
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], 0
mov dword [eax + 4], 0
mov eax, dword [eax]
mov byte [eax], 0
jmp 0x446d9f
mov dword [esp], 0x63ac1a
mov dword [ebp - 0x38], 1
call fcn.005fec50
add ebp, 8
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x446e0e
sub eax, 1
je 0x446e67
sub eax, 1
je 0x446e72
ud2
mov eax, dword [ebp - 0x40]
sub edx, 1
mov dword [esp], eax
jne 0x446e7d
call fcn.00606f40
mov dword [ebp - 0x40], eax
mov dword [esp], 0x20
call fcn.00606e10
mov ecx, dword [ebp - 0x40]
mov dword [esp], ecx
mov dword [ebp - 0x38], 2
mov ecx, eax
mov dword [ebp - 0x4c], eax
call fcn.0052a020
push eax
mov dword [esp + 8], 0x52a2b0
mov dword [esp + 4], 0x73db40
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
mov dword [ebp - 0x38], 3
call fcn.00607a50
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call fcn.00607340
call fcn.00607200
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov dword [ebp - 0x38], 0xffffffff
call fcn.004cf4a0
nop
lea esi, [esi]
push ebp
mov ebp, esp
push edi
push ebx
lea edx, [ebp - 8]
lea edi, [ebp - 0x6c]
sub esp, 0xb0
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x54], 0x607c20
mov dword [ebp - 0x50], 0x60eecc
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], 0x4472b2
mov dword [ebp - 0x44], esp
mov dword [esp], edi
call fcn.004cf190
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x1a4]
test eax, eax
je 0x446ede
mov edi, dword [eax]
test edi, edi
jne 0x44706a
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x88]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x70]
cmp byte [eax + 0x98], 0
je 0x446f31
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x90]
test ecx, ecx
jle 0x447057
mov dword [esp], 1
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x68], 0xffffffff
call fcn.004456a0
sub esp, 4
test al, al
je 0x4470de
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4470de
lea esi, [esi]
mov eax, dword [ebp - 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
mov dword [esp], eax
mov dword [ebp - 0x68], 1
call dword [sym.imp.WS2_32.dll_sendto]
sub esp, 0x18
cmp eax, 0
jle 0x446fa3
add dword [ebp + 8], eax
sub dword [ebp + 0xc], eax
jne 0x446f40
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call fcn.004cf200
mov eax, dword [ebp - 0x70]
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret 8
je 0x447119
cmp eax, 0xffffffff
jne 0x446f40
mov dword [ebp - 0x68], 0xffffffff
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0xb
je 0x446f40
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
test eax, eax
je 0x446f40
cmp dword [0x612504], 3
jle 0x446f40
test byte [0x74abf1], 0x40
je 0x446f40
mov dword [ebp - 0x68], 0xffffffff
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [ebp - 0x80], eax
call dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], ebx
mov ebx, dword [ebp - 0x80]
mov dword [esp + 0x18], ebx
mov eax, dword [eax]
mov dword [esp + 0x10], str.errno___d___s__r__d_buff__s
mov dword [esp + 0xc], 0x4be
mov dword [esp + 8], str.network_socket.cxx
mov dword [esp + 4], str.sendTo
mov dword [esp + 0x14], eax
mov dword [esp], 4
call fcn.0042c140
jmp 0x446f40
mov edx, dword [eax + 0x94]
test edx, edx
jg 0x446f10
jmp 0x446f31
mov edx, dword [ebp - 0x70]
mov eax, edx
lea edi, [edx + 0x124]
add eax, 0x120
and edi, 0xfffffffc
mov ecx, eax
mov dword [ebp - 0x74], eax
sub ecx, edi
mov dword [edx + 0x120], 0
mov ebx, eax
sub ecx, 0xffffff80
mov dword [eax + 0x7c], 0
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov dword [ebp - 0x70], edx
mov edi, dword [edx + 0x88]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x78], edi
mov dword [esp], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x70]
cmp word [eax + 0x120], 2
je 0x4470ea
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x78], eax
jmp 0x446ef3
mov dword [ebp - 0x70], 0
jmp 0x446f8c
movzx eax, word [eax + 0x1a8]
mov dword [esp], eax
mov dword [ebp - 0x68], 0xffffffff
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [ebp - 0x70]
sub esp, 4
mov word [ebx + 0x122], ax
mov eax, dword [ebx + 0x88]
mov dword [ebp - 0x78], eax
jmp 0x4470d0
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
mov dword [esp], eax
mov dword [ebp - 0x68], 0xffffffff
call dword [sym.imp.WS2_32.dll_shutdown]
sub esp, 8
mov dword [esp], 0x20
call fcn.00606e10
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x38]
mov dword [esp + 4], 0x63add9
mov dword [esp], 0x63add5
mov dword [ebp - 0x68], 3
call fcn.00443f80
sub esp, 8
mov dword [ebp - 0x68], 4
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov ebx, dword [ebp - 0x7c]
mov dword [ebx], 0x7427f8
mov dword [ebx + 4], eax
mov dword [esp], eax
mov dword [ebp - 0x68], 5
call sub.msvcrt.dll_strerror
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x38]
add edx, eax
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00443f80
mov eax, 0x7fffffff
sub eax, dword [ebp - 0x1c]
sub esp, 8
cmp eax, 1
jbe 0x44729f
lea ecx, [ebp - 0x20]
mov dword [esp + 4], 2
mov dword [esp], 0x63ac2f
mov dword [ebp - 0x68], 6
call fcn.005defe0
mov ecx, dword [ebp - 0x70]
sub esp, 8
mov dword [ebp - 0x74], eax
mov dword [esp], ecx
call sub.msvcrt.dll_strlen
mov ebx, dword [ebp - 0x74]
mov edx, 0x7fffffff
sub edx, dword [ebx + 4]
cmp eax, edx
ja 0x447293
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x68], 6
call fcn.005defe0
mov ebx, dword [ebp - 0x7c]
sub esp, 8
lea edx, [ebx + 0x10]
lea ecx, [ebx + 8]
mov dword [ebx + 8], edx
mov ebx, dword [eax + 4]
mov edx, dword [eax]
add ebx, edx
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.00443f80
mov eax, dword [ebp - 0x20]
lea ebx, [ebp - 0x18]
sub esp, 8
cmp eax, ebx
je 0x44725f
mov dword [esp], eax
call fcn.00606c40
mov eax, dword [ebp - 0x38]
lea ebx, [ebp - 0x30]
cmp eax, ebx
je 0x447271
mov dword [esp], eax
call fcn.00606c40
mov dword [esp + 8], 0x52a2b0
mov dword [esp + 4], 0x73db40
mov eax, dword [ebp - 0x7c]
mov dword [esp], eax
mov dword [ebp - 0x68], 0xffffffff
call fcn.00607a50
mov dword [esp], 0x63ac1a
call fcn.005fec50
mov dword [esp], 0x63ac1a
mov dword [ebp - 0x68], 6
call fcn.005fec50
add ebp, 8
cmp dword [ebp - 0x68], 5
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x70], eax
ja case.default.0x4472c4
mov eax, dword [ebp - 0x68]
jmp dword [eax*4 + 0x63ae14]
ud2
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call fcn.00606f40
mov dword [ebp - 0x68], 2
call fcn.006079f0
mov dword [ebp - 0x68], 0
call fcn.00607200
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
mov dword [ebp - 0x68], 0xffffffff
call fcn.004cf4a0
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
cmp eax, edx
je case.0x4472c4.4
mov dword [esp], eax
call fcn.00606c40
mov ecx, dword [ebp - 0x7c]
call fcn.005fcb10
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x30]
cmp eax, edx
je case.0x4472c4.6
mov dword [esp], eax
call fcn.00606c40
mov eax, dword [ebp - 0x7c]
mov dword [esp], eax
call fcn.00607340
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
mov dword [ebp - 0x68], 0xffffffff
call fcn.004cf4a0
nop
lea esi, [esi]
push ebp
mov ebp, esp
sub esp, 0x58
lea eax, [ebp - 8]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x24], 0x607c20
mov dword [ebp - 0x20], 0x60eee4
mov dword [ebp - 0x18], 0x4473bb
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], esp
mov dword [esp], eax
call fcn.004cf190
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x38], 1
call 0x446e90
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x3c]
sub esp, 8
mov dword [esp], eax
call fcn.004cf200
mov eax, dword [ebp - 0x40]
leave
ret 4