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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
test ebx, ebx
jne 0x46a50d
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x7cf8]
test eax, eax
je 0x46a53f
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
xorps xmm2, xmm2
add esp, 4
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm1, qword [0x4df6c8]
comisd xmm2, xmm1
movsd qword [ebp - 0x20], xmm1
jb 0x46a565
push 0
push str.30000
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
fdiv qword [0x4df6c8]
add esp, 8
xorps xmm2, xmm2
fstp qword [ebp - 0x30]
movsd xmm1, qword [ebp - 0x30]
movsd qword [ebp - 0x20], xmm1
push edi
mov edi, dword [ebp + 0x1c]
test edi, edi
jle 0x46a6cc
add ebx, 0x14
cmp dword [ebx], 0
mov eax, dword [ebp + 0xc]
jne 0x46a6cc
mov ecx, dword [ebp + 0x18]
xorps xmm0, xmm0
add ecx, esi
movlpd qword [ebp - 0x18], xmm0
comisd xmm1, xmm2
mov dword [ebp + 8], ecx
movlpd qword [ebp - 0x28], xmm0
jbe 0x46a634
lea eax, [ebp - 0x40]
push eax
push 2
call fcn.00465c50
mov eax, dword [ebp - 0x3c]
mov esi, 0x3b9aca00
movsd xmm1, qword [ebp - 0x20]
add esp, 8
mulsd xmm1, qword [0x4e76d8]
xorps xmm0, xmm0
mul esi
movlpd qword [ebp - 0x18], xmm0
movsd xmm0, qword [0x4e76e0]
mov ecx, eax
mov eax, dword [ebp - 0x40]
mul esi
mov esi, eax
add ecx, edx
mov eax, dword [ebp - 0x38]
cdq
add esi, eax
mov dword [ebp - 8], esi
adc ecx, edx
comisd xmm1, xmm0
mov dword [ebp - 0xc], ecx
jb 0x46a60e
subsd xmm1, xmm0
comisd xmm0, xmm1
jbe 0x46a60e
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
add esi, 0
adc edi, 0x80000000
jmp 0x46a614
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
movaps xmm0, xmm1
call fcn.004d49b0
mov ecx, dword [ebp + 8]
add eax, esi
mov esi, dword [ebp - 4]
adc edx, edi
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
jmp 0x46a64c
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], edx
cmp dword [ebp + 0x14], 0
jne 0x46a7a4
test eax, eax
je 0x46a682
push eax
push edi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 0x14
test eax, eax
je 0x46a6b2
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46a6b2
push 0
push edi
push ecx
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov esi, eax
test edi, edi
jns 0x46a6af
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x2733
cmovne esi, edi
test esi, esi
js 0x46a7a1
mov edi, dword [ebp + 0x1c]
cmp dword [ebx], 0
jne 0x46a7a1
test esi, esi
jg 0x46a781
jne 0x46a6d5
test edi, edi
jne 0x46a6db
mov esi, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
js 0x46a7a1
cmp dword [ebp + 0xc], 0
jne 0x46a719
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, 4
push ebx
push 0x7d0
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x30]
push 1
push eax
call fcn.00466e40
add esp, 0x10
cmp dword [ebx], 0
jne 0x46a7a1
test eax, eax
jle 0x46a721
mov ecx, dword [ebp + 8]
jmp 0x46a682
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
movsd xmm0, qword [ebp - 0x20]
xorps xmm2, xmm2
comisd xmm0, xmm2
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
jbe 0x46a656
lea eax, [ebp - 0x50]
push eax
push 2
call fcn.00465c50
mov eax, dword [ebp - 0x4c]
mov esi, 0x3b9aca00
mul esi
add esp, 8
mov ecx, eax
mov eax, dword [ebp - 0x50]
mul esi
add ecx, edx
mov esi, eax
mov eax, dword [ebp - 0x48]
cdq
add esi, eax
adc ecx, edx
sub esi, dword [ebp - 8]
sbb ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
ja 0x46a7a1
jb 0x46a776
cmp esi, dword [ebp - 0x14]
ja 0x46a7a1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
jmp 0x46a656
add dword [ebp - 4], esi
sub edi, esi
mov esi, dword [ebp - 4]
mov dword [ebp + 0x1c], edi
test edi, edi
jle 0x46a6cc
movsd xmm1, qword [ebp - 0x20]
xorps xmm2, xmm2
jmp 0x46a574
mov esi, dword [ebp - 4]
or eax, 0xffffffff
test esi, esi
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret