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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564464
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.00547f50
mov eax, dword [0x5d6b10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test byte [ebp + 0xc], 1
je 0x407ee5
push 0
push 0x7ff
lea eax, [ebp - 0x810]
push eax
push dword [edi + 0x1224c]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
mov dword [ebp - 0x1020], ecx
test ecx, ecx
je 0x40835c
cmp ecx, 0xffffffff
jne 0x407dde
mov dword [edi + 0x12460], 0xfffffffe
or eax, eax
jmp 0x407eff
mov eax, dword [0x5eb930]
push dword [edi + 0x12458]
mov esi, dword [edi + 0x10024]
mov dword [edi + 0x125a0], eax
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x101c], ecx
push eax
lea eax, [ebp - 0x1018]
mov byte [ebp - 0x1018], 0
push eax
mov ecx, edi
call fcn.00407530
mov ebx, eax
cmp esi, dword [edi + 0x10024]
je 0x407e37
push 8
push edi
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp ebx, 0xfffffffd
jne 0x407e49
mov dword [edi + 0x12460], ebx
mov eax, ebx
jmp 0x407eff
cmp ebx, 0xfffffff1
jne 0x407ee5
cmp dword [edi + 0x1c], 0
je 0x407f1d
mov eax, dword [edi + 0x1022c]
lea esi, [edi + 0x1022c]
push esi
mov byte [eax + edi + 0x12254], 0xd
inc dword [esi]
mov eax, dword [esi]
mov byte [eax + edi + 0x12254], 0xa
lea eax, [edi + 0x12254]
mov ecx, dword [edi + 0x1c]
inc dword [esi]
push eax
push dword [ebp - 0x1018]
mov edx, dword [ecx]
call dword [edx + 4]
cmp eax, 0xfffffff0
jne 0x407eb4
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x407ea6
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, edi
mov dword [edi + 0x1c], 0
call fcn.00407bb0
cmp dword [edi + 0x12454], 0
jne 0x407ece
mov dword [edi + 0x12460], 0xffffffee
mov eax, 0xffffffee
jmp 0x407eff
mov ecx, edi
mov dword [edi + 0x10230], 0
mov dword [esi], 0
call fcn.00407a10
mov ecx, edi
call fcn.00407b00
test byte [ebp + 0xc], 0x20
jne 0x40835c
mov ecx, edi
call fcn.00407a10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret 8
push dword [edi + 0x1022c]
lea eax, [edi + 0x12254]
push eax
lea ebx, [edi + 0x1002c]
push ebx
call fcn.00547f80
mov eax, dword [edi + 0x1022c]
mov esi, ebx
add esp, 0xc
mov byte [eax + edi + 0x1002c], 0
mov al, byte [esi]
test al, al
je 0x407f68
nop
movsx eax, al
push eax
call fcn.005473a3
add esp, 4
test eax, eax
je 0x407f74
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x407f50
mov ecx, edi
call fcn.00407bb0
jmp 0x407ee5
mov al, byte [esi]
test al, al
je 0x407f68
lea ebx, [ebp - 0x1010]
movsx eax, al
push eax
call fcn.005473a3
add esp, 4
test eax, eax
jne 0x407f9f
movzx eax, byte [esi]
inc esi
mov byte [ebx], al
inc ebx
mov al, byte [esi]
test al, al
jne 0x407f80
jmp 0x407fa2
mov byte [ebx], 0
lea eax, [ebp - 0x1010]
mov byte [ebx], 0
push eax
call fcn.00547570
mov eax, dword [0x5cb154]
xor ebx, ebx
add esp, 4
mov dword [ebp - 0x1018], ebx
test eax, eax
je 0x40800f
lea ecx, [ebp - 0x1010]
jmp 0x407fd0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407ff0
test dl, dl
je 0x407fec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407ff0
add eax, 2
add ecx, 2
test dl, dl
jne 0x407fd0
xor eax, eax
jmp 0x407ff5
sbb eax, eax
or eax, 1
test eax, eax
je 0x408009
inc ebx
mov eax, ebx
shl eax, 4
mov eax, dword [eax + 0x5cb154]
test eax, eax
jne 0x407fc5
mov dword [ebp - 0x1018], ebx
mov dword [edi + 0x10244], 0
cmp ebx, 0xb
jae 0x408074
mov eax, ebx
shl eax, 4
cmp dword [eax + 0x5cb150], 0
jne 0x408074
xor ebx, ebx
cmp byte [esi], bl
je 0x40806e
movsx eax, byte [esi]
push eax
call fcn.005473a3
add esp, 4
test eax, eax
je 0x40804c
test ebx, ebx
je 0x408068
xor ebx, ebx
mov byte [esi], bl
jmp 0x408068
test ebx, ebx
jne 0x408063
mov eax, dword [edi + 0x10244]
mov dword [edi + eax*4 + 0x10248], esi
inc dword [edi + 0x10244]
mov ebx, 1
inc esi
cmp byte [esi], 0
jne 0x408032
mov ebx, dword [ebp - 0x1018]
mov eax, dword [edi + 0x10244]
mov dword [edi + eax*4 + 0x10248], 0
mov eax, ebx
shl eax, 4
mov eax, dword [eax + 0x5cb150]
cmp eax, 1
jne 0x4080a8
push dword [edi + 0x12250]
push eax
lea eax, [ebp - 0x1010]
push eax
jmp 0x408286
cmp eax, 2
jne 0x4080c0
push dword [edi + 0x12250]
push eax
lea eax, [ebp - 0x1010]
push eax
jmp 0x408286
cmp ebx, 9
ja case.default.0x4080c9
jmp dword [ebx*4 + 0x408370]
push 0x810
call fcn.0041a33c
add esp, 4
mov dword [ebp - 0x1014], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40810d
push dword [edi + 0x10248]
mov ecx, eax
call fcn.004045d0
mov dword [ebp - 4], 0xffffffff
lea ebx, [edi + 0x1002c]
jmp 0x408296
xor eax, eax
mov dword [ebp - 4], 0xffffffff
lea ebx, [edi + 0x1002c]
jmp 0x408296
push 0x1c
call fcn.0041a33c
add esp, 4
mov dword [ebp - 0x1014], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x408158
push dword [edi + 0x12250]
lea ecx, [edi + 0x10248]
push ecx
push dword [edi + 0x10244]
mov ecx, eax
call fcn.00404800
jmp 0x40815a
xor eax, eax
mov dword [edi + 0x1c], eax
lea ebx, [edi + 0x1002c]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 0xc], edi
jmp 0x408299
push 0x20
call fcn.0041a33c
add esp, 4
mov dword [ebp - 0x1014], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x408158
push dword [edi + 0x12250]
lea ecx, [edi + 0x10248]
push ecx
push dword [edi + 0x10244]
mov ecx, eax
call fcn.00404740
jmp 0x40815a
mov dword [edi + 0x12460], 0xfffffffc
mov eax, 0xfffffffe
jmp 0x407eff
push 0x810
call fcn.0041a33c
add esp, 4
mov dword [ebp - 0x1014], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x40810d
push 0x577624
mov ecx, eax
call fcn.004045d0
mov dword [ebp - 4], 0xffffffff
lea ebx, [edi + 0x1002c]
jmp 0x408296
push 0x6030
call fcn.0041a33c
add esp, 4
mov dword [ebp - 0x1014], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x408158
push dword [edi + 0x12250]
lea ecx, [edi + 0x10248]
push ecx
push dword [edi + 0x10244]
mov ecx, eax
call fcn.004047a0
jmp 0x40815a
push 0x20
call fcn.0041a33c
add esp, 4
mov dword [ebp - 0x1014], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x408158
push dword [edi + 0x12250]
lea ecx, [edi + 0x10248]
push ecx
push dword [edi + 0x10244]
mov ecx, eax
call fcn.00404630
jmp 0x40815a
push dword [edi + 0x12250]
push 1
push 0
lea ebx, [edi + 0x1002c]
push ebx
push edi
call fcn.00407320
add esp, 0x14
mov dword [edi + 0x1c], eax
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x408300
mov esi, dword [edi + 0x10020]
mov eax, 0x10000
sub eax, esi
mov dword [ebp - 0x1014], eax
lea eax, [ebp - 0x1014]
mov edx, dword [ecx]
push eax
lea eax, [edi + 0x20]
add eax, esi
push eax
call dword [edx + 8]
test eax, eax
jle 0x4082d1
add dword [edi + 0x10020], eax
jmp 0x4082f9
cmp eax, 0xfffffff0
jne 0x4082f9
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x4082e3
mov eax, dword [ecx]
push 1
call dword [eax]
push ebx
mov ecx, edi
mov dword [edi + 0x1c], 0
call fcn.00407c70
mov ecx, edi
call fcn.00407bb0
mov ecx, edi
call fcn.00407a10
mov eax, dword [ebp - 0x101c]
mov ebx, dword [ebp - 0x1020]
mov dword [edi + 0x10230], 0
mov dword [edi + 0x1022c], 0
cmp ebx, eax
jle 0x407ee5
sub ebx, eax
lea eax, [ebp + eax - 0x810]
push ebx
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.005485d0
add esp, 0xc
cmp ebx, 0x800
jae 0x408357
mov byte [ebp + ebx - 0x810], 0
jmp 0x407ee5
call fcn.00547123
mov dword [edi + 0x12460], 0xfffffff0
or eax, 0xffffffff
jmp 0x407eff