Function at 0x438be0
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 0x438c19
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x438c0b
call fcn.0053fcd2
mov dword [eax], 0x2746
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
cmp word [esi + 0x5c], 0
je 0x438c40
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.00539b90
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
push edi
test al, al
js 0x438c95
and eax, 0x3000
cmp eax, 0x3000
jne 0x438c66
mov edi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 0xffffffffffffffff
call edi
test dword [esi + 0x58], 0x2000
jne 0x438c57
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.00539b90
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 0x438cc2
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x438cb3
call fcn.0053fcd2
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.00446c50
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.00446ae0
push esi
call fcn.00439ab0
add esp, 0x1c
push 0x433bf0
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.00539b90
add esp, 4
test eax, eax
je 0x438d50
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 0x438d67
call fcn.0053fcd2
push 0x1f
push 0x15
push 6
push 0xe8
push 4
push dword [eax]
call fcn.004322a0
add esp, 0x18
test eax, eax
je 0x438e30
push 0x5fe820
call fcn.00427d70
mov ecx, dword [esi + 0xb4]
add esp, 4
cmp esi, dword [0x5fe7fc]
jne 0x438da9
mov dword [0x5fe7fc], ecx
jmp 0x438dbb
mov eax, dword [esi + 0xb8]
mov dword [eax + 0xb4], ecx
mov ecx, dword [0x5fe7fc]
mov edx, dword [esi + 0xb4]
test edx, edx
je 0x438dd3
mov eax, dword [esi + 0xb8]
mov dword [edx + 0xb8], eax
jmp 0x438de3
test ecx, ecx
je 0x438de3
mov eax, dword [esi + 0xb8]
mov dword [ecx + 0xb8], eax
push 0x5fe820
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb8], 0
call fcn.00427d80
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 0x438e26
push esi
call fcn.00433280
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.004232c0
int3