Function at 0x48f530
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x58]
test eax, 0x4000000
je 0x48f569
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x48f55b
call fcn.00596e90
mov dword [eax], 0x2746
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
cmp word [esi + 0x5c], 0
je 0x48f590
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x60]
call dword [sym.imp.WS2_32.dll_send]
push eax
call fcn.00590b90
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
push edi
test al, al
js 0x48f5e5
and eax, 0x3000
cmp eax, 0x3000
jne 0x48f5b6
mov edi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 0xffffffffffffffff
call edi
test dword [esi + 0x58], 0x2000
jne 0x48f5a7
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.00590b90
add esp, 4
or ecx, 0xffffffff
test eax, eax
cmovne ecx, dword [ebp + 8]
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
test eax, 0x2000
je 0x48f612
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x48f603
call fcn.00596e90
pop edi
mov dword [eax], 0x2733
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
push ebx
push edi
push dword [ebp + 0xc]
push dword [esi + 0x70]
call fcn.0049dc40
mov eax, dword [esi + 0x58]
lea ebx, [esi + 0xd4]
and eax, 0xffff7fff
xorps xmm0, xmm0
or eax, 0x2000
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0xe4]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov eax, dword [esi + 0xe4]
mov dword [eax + 0x10], esi
lock inc dword [ebx]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [esi + 0x70]
call fcn.0049dad0
push esi
call fcn.00490400
add esp, 0x1c
push 0x48a550
push dword [esi + 0xe4]
push dword [ebp - 4]
push dword [ebp - 8]
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
push eax
call fcn.00590b90
add esp, 4
test eax, eax
je 0x48f6a0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x48f6b7
call fcn.00596e90
push 0x1f
push 0x15
push 6
push 0xe8
push 4
push dword [eax]
call fcn.00488c00
add esp, 0x18
test eax, eax
je 0x48f780
push 0x668d40
call fcn.0047e9d0
mov ecx, dword [esi + 0xb4]
add esp, 4
cmp esi, dword [0x668d10]
jne 0x48f6f9
mov dword [0x668d10], ecx
jmp 0x48f70b
mov eax, dword [esi + 0xb8]
mov dword [eax + 0xb4], ecx
mov ecx, dword [0x668d10]
mov edx, dword [esi + 0xb4]
test edx, edx
je 0x48f723
mov eax, dword [esi + 0xb8]
mov dword [edx + 0xb8], eax
jmp 0x48f733
test ecx, ecx
je 0x48f733
mov eax, dword [esi + 0xb8]
mov dword [ecx + 0xb8], eax
push 0x668d40
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb8], 0
call fcn.0047e9e0
mov eax, dword [esi + 0x58]
add esp, 4
and eax, 0xffffdfff
or ecx, 0xffffffff
or eax, 0x4000000
mov dword [esi + 0x58], eax
lock xadd dword [ebx], ecx
jne 0x48f776
push esi
call fcn.00489be0
add esp, 4
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push str.WriteFileEx_failed:__m
push 0x360000
call fcn.00479f70
int3