Function at 0x482d10
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 0x482d2d
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x7cf8]
test eax, eax
je 0x482d5f
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 [0x55a7e8]
comisd xmm2, xmm1
movsd qword [ebp - 0x20], xmm1
jb 0x482d85
push 0
push str.30000
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
fdiv qword [0x55a7e8]
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 0x482eec
add ebx, 0x14
cmp dword [ebx], 0
mov eax, dword [ebp + 0xc]
jne 0x482eec
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 0x482e54
lea eax, [ebp - 0x40]
push eax
push 2
call fcn.0047e430
mov eax, dword [ebp - 0x3c]
mov esi, 0x3b9aca00
movsd xmm1, qword [ebp - 0x20]
add esp, 8
mulsd xmm1, qword [0x5666b0]
xorps xmm0, xmm0
mul esi
movlpd qword [ebp - 0x18], xmm0
movsd xmm0, qword [0x55aaa8]
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 0x482e2e
subsd xmm1, xmm0
comisd xmm0, xmm1
jbe 0x482e2e
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
add esi, 0
adc edi, 0x80000000
jmp 0x482e34
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
movaps xmm0, xmm1
call fcn.0054fa90
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 0x482e6c
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 0x482fc4
test eax, eax
je 0x482ea2
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 0x482ed2
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x482ed2
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 0x482ecf
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x2733
cmovne esi, edi
test esi, esi
js 0x482fc1
mov edi, dword [ebp + 0x1c]
cmp dword [ebx], 0
jne 0x482fc1
test esi, esi
jg 0x482fa1
jne 0x482ef5
test edi, edi
jne 0x482efb
mov esi, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
js 0x482fc1
cmp dword [ebp + 0xc], 0
jne 0x482f39
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.0047f650
add esp, 0x10
cmp dword [ebx], 0
jne 0x482fc1
test eax, eax
jle 0x482f41
mov ecx, dword [ebp + 8]
jmp 0x482ea2
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 0x482e76
lea eax, [ebp - 0x50]
push eax
push 2
call fcn.0047e430
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 0x482fc1
jb 0x482f96
cmp esi, dword [ebp - 0x14]
ja 0x482fc1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
jmp 0x482e76
add dword [ebp - 4], esi
sub edi, esi
mov esi, dword [ebp - 4]
mov dword [ebp + 0x1c], edi
test edi, edi
jle 0x482eec
movsd xmm1, qword [ebp - 0x20]
xorps xmm2, xmm2
jmp 0x482d94
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