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

Disassembly:
sub esp, 0x4c
push esi
mov esi, ecx
cmp byte [esi + 0x6d], 0
je 0x407ef1
xor eax, eax
jmp 0x40812f
cmp dword [esp + 0x54], 0
je 0x407f09
push dword [esp + 0x54]
call fcn.00407e78
test eax, eax
jne 0x40812f
push ebx
push ebp
push edi
xor eax, eax
mov byte [esi + 0x6d], 1
push eax
push eax
push dword [0x4e8ccc]
mov dword [esp + 0x20], eax
push dword [esi + 0x10]
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push dword [esi + 0x10]
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
lea ebp, [esi + 0x24]
xor edi, edi
mov eax, dword [esi + 0x2c]
cmp edi, eax
jae 0x407f54
mov ecx, dword [ebp]
cmp byte [ecx + edi], 0
je 0x407f8c
inc edi
cmp edi, eax
jb 0x407f49
cmp eax, dword [esi + 0x28]
jne 0x407f69
mov eax, dword [ebp + 4]
mov ecx, ebp
inc eax
push eax
call fcn.0040b4ac
test eax, eax
jne 0x407f92
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x2c]
push 0
push eax
mov eax, dword [ebp]
add eax, dword [esi + 0x2c]
push eax
push dword [esi + 0x10]
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x407f92
add dword [esi + 0x2c], eax
jmp 0x407f3f
mov dword [esp + 0x18], edi
jmp 0x407fa6
mov ecx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.0040acdf
mov edi, eax
test edi, edi
jne 0x40810a
mov ebx, dword [ebp]
push 0x20
push ebx
mov dword [esp + 0x68], ebx
call fcn.0049d080
pop ecx
xor ebp, ebp
mov dword [esp + 0x14], 0x4cf2ae
pop ecx
test eax, eax
je 0x40815c
mov byte [eax], 0
inc eax
cmp byte [eax], 0
je 0x40815c
mov edi, ebp
cmp ebp, 0x10
je 0x408070
cmp byte [eax], 0x2d
jne 0x408070
inc eax
mov dl, byte [eax]
test dl, dl
je 0x408070
cmp byte [eax + 1], 0x20
jne 0x408000
cmp byte [eax + 2], 0x2d
je 0x408000
inc eax
mov byte [eax], dl
mov dword [esp + ebp*4 + 0x1c], eax
lea ecx, [eax + 1]
inc ebp
cmp dl, 0x69
jne 0x408015
mov dword [esp + 0x10], ecx
mov ebp, edi
jmp 0x40801e
cmp dl, 0x2d
je 0x408158
cmp byte [ecx], 0x22
jne 0x408136
lea edi, [eax + 2]
jmp 0x408045
mov dl, al
cmp al, 0x5c
jne 0x408035
mov dl, byte [edi + 1]
lea ebx, [edi + 1]
cmovne ebx, edi
test dl, dl
je 0x408070
mov byte [ecx], dl
lea edi, [ebx + 1]
inc ecx
mov al, byte [edi]
cmp al, 0x22
jne 0x40802c
inc edi
mov byte [ecx], 0
cmp byte [edi], 0
je 0x408158
push 2
push 0x4d1098
push edi
call fcn.004a4a60
add esp, 0xc
test eax, eax
je 0x40814c
xor edi, edi
inc edi
and dword [esi + 0x3c], 0
lea ebx, [esi + 0x34]
and dword [esi + 0x40], 0
cmp dword [esi + 0x10], 0xffffffff
je 0x40810a
push dword [esp + 0x10]
push dword [esp + 0x64]
push str._response_command__s__transaction_id__e
push ebx
call fcn.0040b010
add esp, 0xc
mov ecx, ebx
push 0x4d1a20
call fcn.0040afbf
push edi
push str._error_code__i_____response_
push ebx
call fcn.0040b010
add esp, 0xc
mov ecx, esi
push 0
call fcn.0040a903
mov edi, eax
test edi, edi
jne 0x40810a
cmp dword [esi + 0x2c], 0
lea ebp, [esi + 0x24]
je 0x4080f3
mov ebx, dword [esp + 0x18]
mov eax, dword [ebp + 8]
inc ebx
cmp ebx, eax
jae 0x4080f0
mov ecx, dword [ebp]
sub eax, ebx
push eax
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.0049cb00
add esp, 0xc
sub dword [ebp + 8], ebx
cmp dword [esi + 0x44], 2
je 0x407f3d
cmp dword [esi + 0x44], 0
je 0x40810a
mov ecx, esi
call fcn.00407ebd
cmp dword [esi + 0x10], 0xffffffff
mov byte [esi + 0x6d], 0
je 0x40812a
push 0x21
push 0x408
push dword [0x4e8ccc]
push dword [esi + 0x10]
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x4c
ret 4
push 0x4d1098
push ecx
call fcn.0049d1b0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x408158
mov byte [edi], 0
lea eax, [edi + 1]
cmp byte [eax], 0
jne 0x407fd6
mov ebx, dword [esp + 0x60]
xor edi, edi
push ebx
push dword [edi*8 + 0x4e4720]
call fcn.004a3ca0
pop ecx
pop ecx
test eax, eax
je 0x40817f
inc edi
cmp edi, 0x1a
jne 0x40815e
push 4
pop edi
jmp 0x408073
push dword [esp + 0x10]
lea eax, [esp + 0x20]
mov ecx, esi
push ebp
push eax
call dword [edi*8 + 0x4e4724]
mov edi, eax
test edi, edi
jne 0x4081c8
cmp dword [esi + 0x3c], eax
jne 0x4081b3
push dword [esp + 0x10]
lea eax, [esi + 0x34]
push ebx
push str._response_command__s__transaction_id__e___
push eax
call fcn.0040b010
add esp, 0x10
push 0
mov ecx, esi
call fcn.0040a903
mov edi, eax
test edi, edi
jne 0x40810a
jmp 0x4081d1
cmp edi, 0xffffffff
jne 0x408073
xor edi, edi
jmp 0x4080c8