Function at 0x4791ba
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x374], 0
jne 0x4792c1
lea eax, [ebx + 0x374]
push eax
push 0
push 0x57c4a0
lea edx, [ebx + 0x234]
push edx
call fcn.0046e7cb
cmp dword [ebx + 0x374], 0
je 0x4792c1
cmp byte [0x57c4a0], 0
je 0x4792c1
lea ecx, [ebx + 4]
mov edi, ecx
mov esi, 0x57c887
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x57c887
call fcn.004c5084
test eax, eax
je 0x4792c1
push 0x57c887
push 0x57c4a0
call fcn.005394dc
add esp, 8
push 0x551ba4
push 0x57c4a0
call fcn.005394dc
add esp, 8
lea eax, [ebx + 0x130]
mov esi, eax
mov edi, 0x57c4a0
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x57c4a0
call fcn.005395b8
pop ecx
cmp byte [eax + 0x57c49f], 0x5c
jne 0x4792a6
mov byte [eax + 0x57c49f], 0
push 2
push 0x57c4a0
call fcn.0041c947
test eax, eax
jne 0x4792c1
push 0x57c4a0
call fcn.00540c50
pop ecx
push ebx
call fcn.00478dd8
test eax, eax
jne 0x4792e4
push ebx
call fcn.00478a69
test eax, eax
je 0x4792dd
push 0
push ebx
call fcn.0047896f
xor eax, eax
jmp 0x4794d9
mov dword [ebx + 0x33c], 2
push 0
call fcn.00548d28
pop ecx
mov dword [ebx + 0x394], eax
cmp dword [0x556164], 0
jne 0x479321
jmp 0x47930a
mov byte [esi], 0x5f
push 0x20
lea edx, [ebx + 0x234]
push edx
call fcn.00539518
add esp, 8
mov esi, eax
test eax, eax
jne 0x479307
lea edx, [ebx + 0x234]
push edx
lea esi, [ebx + 4]
push esi
push 0x551ba7
push 0x574d36
call sub.USER32.dll_wsprintfA
add esp, 0x10
push ebx
call fcn.00479102
mov edi, eax
mov dword [ebx], edi
test edi, edi
jne 0x479373
push 0
push 2
push 3
push 0x574d36
call fcn.00519cb1
mov edi, eax
mov dword [ebx], edi
test edi, edi
jne 0x479373
push 0
push ebx
call fcn.0047896f
xor eax, eax
jmp 0x4794d9
cmp dword [0x54fc1c], 0
jbe 0x479438
mov dword [ebx + 0x33c], 3
mov edx, dword [0x54fc1c]
mov dword [ebx + 0x360], edx
xor ecx, ecx
mov dword [0x54fc1c], ecx
push 0
push 0xb59
call fcn.0041c35b
push eax
push 0x574d36
call sub.USER32.dll_wsprintfA
add esp, 8
push 0x574d36
push 1
push 1
push 1
push 1
push ebx
call fcn.0050c318
cmp dword [ebx + 0x36c], 0
jne 0x479462
mov ax, word [ebx + 0x34c]
test ax, ax
je 0x479403
push dword [ebx + 0x360]
movzx edx, ax
push edx
push esi
push 0x551bb2
push 0x574d36
call sub.USER32.dll_wsprintfA
add esp, 0x14
jmp 0x47942a
push dword [ebx + 0x340]
push dword [ebx + 0x360]
movzx ecx, word [ebx + 0x34c]
push ecx
push esi
push 0x551bdd
push 0x574d36
call sub.USER32.dll_wsprintfA
add esp, 0x18
push 0
push 0x574d36
call fcn.0051b8a5
jmp 0x479462
push 0
push 0xb5a
call fcn.0041c35b
push eax
push 1
push 1
push 1
push 1
push ebx
call fcn.0050c318
cmp dword [ebx + 0x36c], 0
jne 0x479462
push ebx
call fcn.00479839
cmp dword [ebx + 0x36c], 0
je 0x4794d4
push dword [ebx + 0x360]
imul eax, dword [0x557490], 0x64
add eax, 0x5573c8
push eax
push str.121__s__lu_n
push 0x574d36
call sub.USER32.dll_wsprintfA
add esp, 0x10
push 0
push 0x574d36
call fcn.005395b8
pop ecx
push eax
push 0x574d36
push dword [ebx + 0x398]
call sub.WSOCK32.dll_send
push ebx
call fcn.00479b17
cmp dword [0x556f6c], 0
je 0x4794d4
push 3
push 0
lea edx, [ebx + 0xcc]
push edx
lea ecx, [ebx + 4]
push ecx
push dword [ebx]
call fcn.0045f440
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4