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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x107c
call fcn.005d9990
mov eax, dword [0x6696c8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x4a0ea0
mov ebx, dword [ebp + 8]
cmp eax, ebx
je 0x4a091c
mov eax, dword [eax + 0x1128]
cmp eax, edi
jne 0x4a0905
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x1124]
push eax
call fcn.00508aa0
add esp, 4
test eax, eax
je 0x4a0ea0
cmp dword [ebx + 0x10e0], 2
jne 0x4a0cad
mov eax, dword [ebx + 0x10e4]
sub eax, 0x82
je 0x4a0ea9
dec eax
jne 0x4a0c2e
mov ecx, dword [0x6a0f40]
mov edx, dword [ebx + 0x111c]
push edi
push edi
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
push edi
lea eax, [esp + 0x24]
push 0x1068
push eax
call fcn.00423310
mov edx, dword [ebx + 0x111c]
add esp, 8
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x4a0c2e
cmp eax, edi
jle 0x4a0c2e
mov byte [esp + eax + 0x20], 0
lea eax, [esp + 0x20]
push eax
call fcn.005076e0
add esp, 4
test eax, eax
je 0x4a0c2e
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x18], ecx
push 0x5f4858
push edx
mov dword [esp + 0x24], ecx
call fcn.005dad9d
push 0x5f4858
push edi
mov dword [esp + 0x20], eax
mov esi, 1
call fcn.005dad9d
add esp, 0x10
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x4a0c2e
cmp esi, 3
jge 0x4a0a1f
push 0x5f4858
push edi
inc esi
call fcn.005dad9d
add esp, 8
cmp eax, edi
mov dword [esp + esi*4 + 0x10], eax
jne 0x4a0a03
cmp esi, 2
jl 0x4a0c2e
mov eax, dword [esp + 0x14]
push eax
call fcn.00507720
add esp, 4
test eax, eax
je 0x4a0c2e
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005d9a55
add esp, 4
cmp eax, 0x83
je 0x4a0aef
mov esi, dword [0x634560]
cmp esi, edi
je 0x4a0c2e
cmp dword [esi + 0x1424], edi
je 0x4a0a8e
cmp dword [esi + 0x1408], 3
jne 0x4a0a8e
lea edx, [ebx + 0x268]
push edx
lea eax, [esi + 0x12d4]
push eax
call fcn.005f1860
add esp, 8
test eax, eax
je 0x4a0aab
mov esi, dword [esi + 0x2104]
cmp esi, edi
jne 0x4a0a63
push edi
push ebx
call fcn.0049f510
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x63ca9c]
push ecx
push edi
push 0xb61
mov dword [0x6870cc], edi
mov dword [0x6870dc], 1
call fcn.00424130
mov edx, dword [esi]
add esp, 8
push eax
push edx
call fcn.0052ddc0
add esp, 0xc
push edi
push ebx
call fcn.0049f510
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
push eax
call fcn.005da144
push ecx
fstp qword [esp]
call fcn.0051c330
fstp qword [esp + 0x18]
mov ecx, dword [esp + 0x18]
fld qword [esp + 0x18]
mov edx, dword [esp + 0x1c]
fcomp qword [0x5f56a0]
add esp, 8
mov dword [ebx + 0x1068], ecx
mov dword [ebx + 0x106c], edx
fnstsw ax
test ah, 5
jp 0x4a0b51
push edi
push ebx
mov dword [ebx + 0x1068], edi
mov dword [ebx + 0x106c], 0xbff00000
call fcn.0049f510
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push edi
lea eax, [ebx + 0x39a]
push eax
lea esi, [ebx + 0x7cc]
push esi
call fcn.0048d300
push esi
call fcn.00424220
add esp, 0x14
test eax, eax
jne 0x4a0c2e
cmp dword [0x619efc], edi
mov ecx, dword [0x63ce4c]
mov dword [0x6a0f90], ecx
je 0x4a0ba5
mov edx, dword [0x6a0f40]
push edi
push 0x478820
push 0x32a
push edx
call fcn.004762c0
add esp, 0x10
push ebx
call fcn.0049f870
add esp, 4
test eax, eax
je 0x4a0c2e
mov eax, dword [0x63ee08]
mov dword [ebx + 0x1070], eax
mov ecx, dword [0x63ee0c]
mov dword [ebx + 0x1074], ecx
mov dword [0x63ee08], edi
mov dword [0x63ee0c], edi
push ebx
mov dword [ebx + 0x10d4], 1
call fcn.0049efa0
push esi
lea edx, [ebx + 4]
push edx
lea eax, [esp + 0x2c]
push str.Get__s__s
push eax
mov dword [ebx + 0x1118], edi
call fcn.005d9929
push ebx
call fcn.0049fc80
add esp, 0x18
cmp eax, edi
mov dword [ebx], eax
jne 0x4a0c41
mov ecx, dword [ebx + 0x1124]
push ebx
push ecx
push edi
push 2
lea edx, [esp + 0x30]
push 3
push edx
call fcn.00596330
add esp, 0x18
cmp eax, edi
mov dword [ebx], eax
jne 0x4a0c41
push edi
push ebx
call fcn.0049f510
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push edi
push edi
push edi
push 2
push ebx
call fcn.00572130
mov eax, dword [ebx + 0x1124]
mov ecx, dword [ebx + 0x1074]
mov edx, dword [ebx + 0x1070]
push ecx
mov ecx, dword [eax + 0x31fc]
imul ecx, ecx, 0x132
push edx
lea edx, [ecx + eax + 0x2e66]
push edx
lea eax, [esp + 0x44]
push str.132__s__0.0Lf_n
push eax
call fcn.005d9929
lea eax, [esp + 0x4c]
add esp, 0x2c
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a0c90
push edi
sub eax, edx
mov edx, dword [ebx + 0x111c]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
push edi
mov dword [ebx + 0x1034], 4
mov dword [ebx + 0x1050], edi
mov dword [ebx + 0x1054], edi
mov dword [ebx + 0x1060], edi
mov dword [ebx + 0x1064], edi
call fcn.005daa26
add esp, 4
mov dword [ebx + 0x10f4], eax
mov dword [ebx + 0x10f8], eax
call fcn.00423480
mov dword [ebx + 0x1104], edx
lea esi, [ebx + 0x39a]
lea edx, [esp + 0x20]
mov dword [ebx + 0x1100], eax
mov dword [ebx + 0x1108], edi
mov dword [ebx + 0x1110], edi
mov dword [ebx + 0x1114], edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4a0d15
lea edx, [esp + 0x20]
push 2
push edx
call fcn.00424420
add esp, 8
test eax, eax
jne 0x4a0d46
push edi
push edi
lea eax, [esp + 0x28]
push eax
push 0x5f4c90
call fcn.0048d300
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
call fcn.004256e0
lea edx, [esp + 0x24]
push edx
push 0x432
push esi
call fcn.00425550
lea eax, [ebx + 0x7cc]
add esp, 0x10
mov edx, eax
jmp 0x4a0d70
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a0d70
lea edi, [esp + 0x20]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4a0d80
fld qword [ebx + 0x1070]
mov ecx, eax
fcomp qword [0x5f56a0]
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
fnstsw ax
push 0
test ah, 0x41
rep movsb byte es:[edi], byte [esi]
push 0x80
lea eax, [esp + 0x28]
jne 0x4a0f34
push 3
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebx + 0x1030], eax
je 0x4a0f55
mov ecx, dword [ebx + 0x1070]
mov edx, dword [ebx + 0x1074]
mov dword [ebx + 0x1050], ecx
mov dword [ebx + 0x1054], edx
push 0
push 0xb63
call fcn.00424130
push eax
push 1
push 1
push 1
push 1
push ebx
call fcn.00572130
push 0
push 0xb64
call fcn.00424130
push eax
push 0
push 0
push 0
push 0
push ebx
call fcn.00572130
mov eax, dword [0x61830c]
add esp, 0x40
test eax, eax
je 0x4a0e57
push 0
call fcn.00414bf0
add esp, 4
test eax, eax
je 0x4a0e57
mov ecx, dword [ebx + 0x1124]
push ebx
push ecx
push 0x1c
push 0
call fcn.004173c0
add esp, 0x10
mov eax, dword [0x6988ac]
test eax, eax
je 0x4a0e85
push 0
call fcn.00577050
add esp, 4
test eax, eax
je 0x4a0e85
mov edx, dword [ebx]
mov eax, dword [ebx + 0x1124]
push edx
push ebx
push eax
push 0x1c
push 0
call fcn.00577910
add esp, 0x14
mov ecx, dword [0x6a0f40]
mov edx, dword [ebx + 0x111c]
push 0x23
push 0x8012
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x1124]
lea ecx, [ebx + 0x7cc]
push ecx
mov dword [ebx + 0x10e4], 0x83
mov ecx, dword [eax + 0x31fc]
imul ecx, ecx, 0x132
lea edx, [ebx + 0x39a]
push edx
lea edx, [ecx + eax + 0x2e66]
push edx
lea eax, [esp + 0x2c]
push str.130__s__s_s_n
push eax
call fcn.005d9929
lea eax, [esp + 0x34]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a0ef4
push edi
sub eax, edx
mov edx, dword [ebx + 0x111c]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov eax, dword [0x6a0f40]
mov ecx, dword [ebx + 0x111c]
push 0x21
push 0x800f
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebx + 0x1030], eax
jne 0x4a0df3
push 0
push 0xb62
call fcn.00424130
push eax
push 0
push ebx
call fcn.0049fd30
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret