Function at 0x47afe0
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 0x47affd
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x7cf8]
test eax, eax
je 0x47b02f
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 [0x514590]
comisd xmm2, xmm1
movsd qword [ebp - 0x20], xmm1
jb 0x47b055
push 0
push str.30000
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
fdiv qword [0x514590]
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 0x47b1bc
add ebx, 0x14
cmp dword [ebx], 0
mov eax, dword [ebp + 0xc]
jne 0x47b1bc
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 0x47b124
lea eax, [ebp - 0x40]
push eax
push 2
call fcn.00476750
mov eax, dword [ebp - 0x3c]
mov esi, 0x3b9aca00
movsd xmm1, qword [ebp - 0x20]
add esp, 8
mulsd xmm1, qword [0x520260]
xorps xmm0, xmm0
mul esi
movlpd qword [ebp - 0x18], xmm0
movsd xmm0, qword [0x520268]
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 0x47b0fe
subsd xmm1, xmm0
comisd xmm0, xmm1
jbe 0x47b0fe
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
add esi, 0
adc edi, 0x80000000
jmp 0x47b104
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
movaps xmm0, xmm1
call fcn.00509ab0
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 0x47b13c
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 0x47b294
test eax, eax
je 0x47b172
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 0x47b1a2
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x47b1a2
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 0x47b19f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x2733
cmovne esi, edi
test esi, esi
js 0x47b291
mov edi, dword [ebp + 0x1c]
cmp dword [ebx], 0
jne 0x47b291
test esi, esi
jg 0x47b271
jne 0x47b1c5
test edi, edi
jne 0x47b1cb
mov esi, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
js 0x47b291
cmp dword [ebp + 0xc], 0
jne 0x47b209
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.00477940
add esp, 0x10
cmp dword [ebx], 0
jne 0x47b291
test eax, eax
jle 0x47b211
mov ecx, dword [ebp + 8]
jmp 0x47b172
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 0x47b146
lea eax, [ebp - 0x50]
push eax
push 2
call fcn.00476750
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 0x47b291
jb 0x47b266
cmp esi, dword [ebp - 0x14]
ja 0x47b291
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
jmp 0x47b146
add dword [ebp - 4], esi
sub edi, esi
mov esi, dword [ebp - 4]
mov dword [ebp + 0x1c], edi
test edi, edi
jle 0x47b1bc
movsd xmm1, qword [ebp - 0x20]
xorps xmm2, xmm2
jmp 0x47b064
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